summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindingconsole.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-02-17 10:42:06 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-02-17 10:42:06 -0800
commit4db56b229f37dc4637bf403baa684ed57db9e30d (patch)
tree2573c6e36630c5ae46ba08fe8154c325738e4244 /indra/newview/llfloaterpathfindingconsole.cpp
parentbbf707764f6e1b4473a80edd566946ec0532c304 (diff)
PATH-284: Ensuring that path testing only occurs when the console window is show with the testing panel visible.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r--indra/newview/llfloaterpathfindingconsole.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index 5db052e448..cdd96b8b8e 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -60,6 +60,8 @@
#define XUI_CHARACTER_TYPE_C 3
#define XUI_CHARACTER_TYPE_D 4
+#define XUI_TEST_TAB_INDEX 1
+
const int CURRENT_REGION = 99;
const int MAX_OBSERVERS = 10;
@@ -180,7 +182,7 @@ BOOL LLFloaterPathfindingConsole::handleAnyMouseClick(S32 x, S32 y, MASK mask, E
BOOL LLFloaterPathfindingConsole::isGeneratePathMode(MASK mask, EClickType clicktype, BOOL down) const
{
- return (getVisible() && (mEditTestTabContainer->getCurrentPanelIndex() == 1) &&
+ return (isShown() && (mEditTestTabContainer->getCurrentPanelIndex() == XUI_TEST_TAB_INDEX) &&
(clicktype == LLMouseHandler::CLICK_LEFT) && down &&
(((mask & MASK_CONTROL) && !(mask & (~MASK_CONTROL))) ||
((mask & MASK_SHIFT) && !(mask & (~MASK_SHIFT)))));