diff options
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index fc6a28f..499ed27 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -33,6 +33,11 @@ | |||
33 | modified: linden/indra/newview/llfloatertools.h | 33 | modified: linden/indra/newview/llfloatertools.h |
34 | modified: linden/indra/newview/llviewermenu.cpp | 34 | modified: linden/indra/newview/llviewermenu.cpp |
35 | modified: linden/indra/newview/skins/default/xui/en-us/floater_tools.xml | 35 | modified: linden/indra/newview/skins/default/xui/en-us/floater_tools.xml |
36 | |||
37 | |||
38 | * Fixed tree/grass label not hiding. | ||
39 | |||
40 | modified: linden/indra/newview/llfloatertools.cpp | ||
36 | 41 | ||
37 | 42 | ||
38 | 2009-09-03 Jacek Antonelli <jacek.antonelli@gmail.com> | 43 | 2009-09-03 Jacek Antonelli <jacek.antonelli@gmail.com> |
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index a99227d..f3ffbe4 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -1043,15 +1043,15 @@ void LLFloaterTools::onFocusReceived() | |||
1043 | 1043 | ||
1044 | void LLFloaterTools::updateTreeGrassCombo(bool visible) | 1044 | void LLFloaterTools::updateTreeGrassCombo(bool visible) |
1045 | { | 1045 | { |
1046 | LLTextBox* tree_grass_label = getChild<LLTextBox>("tree_grass_label"); | ||
1046 | if (visible) | 1047 | if (visible) |
1047 | { | 1048 | { |
1048 | LLPCode pcode = LLToolPlacer::getObjectType(); | 1049 | LLPCode pcode = LLToolPlacer::getObjectType(); |
1049 | std::map<std::string, S32>::iterator it, end; | 1050 | std::map<std::string, S32>::iterator it, end; |
1050 | std::string selected; | 1051 | std::string selected; |
1051 | LLTextBox* tree_grass_label = getChild<LLTextBox>("tree_grass_label"); | ||
1052 | if (pcode == LLToolPlacerPanel::sTree) | 1052 | if (pcode == LLToolPlacerPanel::sTree) |
1053 | { | 1053 | { |
1054 | tree_grass_label->setVisible(true); | 1054 | tree_grass_label->setVisible(visible); |
1055 | LLButton* button = getChild<LLButton>("ToolTree"); | 1055 | LLButton* button = getChild<LLButton>("ToolTree"); |
1056 | tree_grass_label->setText(button->getToolTip()); | 1056 | tree_grass_label->setText(button->getToolTip()); |
1057 | 1057 | ||
@@ -1061,7 +1061,7 @@ void LLFloaterTools::updateTreeGrassCombo(bool visible) | |||
1061 | } | 1061 | } |
1062 | else if (pcode == LLToolPlacerPanel::sGrass) | 1062 | else if (pcode == LLToolPlacerPanel::sGrass) |
1063 | { | 1063 | { |
1064 | tree_grass_label->setVisible(true); | 1064 | tree_grass_label->setVisible(visible); |
1065 | LLButton* button = getChild<LLButton>("ToolGrass"); | 1065 | LLButton* button = getChild<LLButton>("ToolGrass"); |
1066 | tree_grass_label->setText(button->getToolTip()); | 1066 | tree_grass_label->setText(button->getToolTip()); |
1067 | 1067 | ||
@@ -1097,6 +1097,7 @@ void LLFloaterTools::updateTreeGrassCombo(bool visible) | |||
1097 | } | 1097 | } |
1098 | 1098 | ||
1099 | mComboTreesGrass->setVisible(visible); | 1099 | mComboTreesGrass->setVisible(visible); |
1100 | tree_grass_label->setVisible(visible); | ||
1100 | } | 1101 | } |
1101 | 1102 | ||
1102 | // static | 1103 | // static |