summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatertools.cpp
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2012-10-25 09:54:04 -0700
committerKelly Washington <kelly@lindenlab.com>2012-10-25 09:54:04 -0700
commitd41eaa2e3d9eeaeb06a593d9e3dcbdd4174cecea (patch)
treebe638dfd0ed4d8620a7f160069c48567ffe15507 /indra/newview/llfloatertools.cpp
parent9b8cd0e923440d6c37f9b97aef29edec6ac09dbc (diff)
MAINT-1743 "Use Selection for Grid" does not change the grid ruler to "Reference"
in the tools floater Reviewed with Simon.
Diffstat (limited to 'indra/newview/llfloatertools.cpp')
-rw-r--r--indra/newview/llfloatertools.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp
index 48484786f6..1eb7f4469a 100644
--- a/indra/newview/llfloatertools.cpp
+++ b/indra/newview/llfloatertools.cpp
@@ -1055,6 +1055,17 @@ void commit_grid_mode(LLUICtrl *ctrl)
LLSelectMgr::getInstance()->setGridMode((EGridMode)combo->getCurrentIndex());
}
+// static
+void LLFloaterTools::setGridMode(S32 mode)
+{
+ LLFloaterTools* tools_floater = LLFloaterReg::getTypedInstance<LLFloaterTools>("build");
+ if (!tools_floater || !tools_floater->mComboGridMode)
+ {
+ return;
+ }
+
+ tools_floater->mComboGridMode->setCurrentByIndex(mode);
+}
void LLFloaterTools::onClickGridOptions()
{