diff options
Diffstat (limited to 'linden/indra/llui/llfloater.cpp')
-rw-r--r-- | linden/indra/llui/llfloater.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index bf50830..759fae0 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp | |||
@@ -832,8 +832,14 @@ void LLFloater::setMinimized(BOOL minimize) | |||
832 | 832 | ||
833 | for (S32 i = 0; i < 4; i++) | 833 | for (S32 i = 0; i < 4; i++) |
834 | { | 834 | { |
835 | if (mResizeBar[i]) mResizeBar[i]->setEnabled(FALSE); | 835 | if (mResizeBar[i] != NULL) |
836 | if (mResizeHandle[i]) mResizeHandle[i]->setEnabled(FALSE); | 836 | { |
837 | mResizeBar[i]->setEnabled(FALSE); | ||
838 | } | ||
839 | if (mResizeHandle[i] != NULL) | ||
840 | { | ||
841 | mResizeHandle[i]->setEnabled(FALSE); | ||
842 | } | ||
837 | } | 843 | } |
838 | 844 | ||
839 | mMinimized = TRUE; | 845 | mMinimized = TRUE; |
@@ -875,8 +881,14 @@ void LLFloater::setMinimized(BOOL minimize) | |||
875 | 881 | ||
876 | for (S32 i = 0; i < 4; i++) | 882 | for (S32 i = 0; i < 4; i++) |
877 | { | 883 | { |
878 | if (mResizeBar[i]) mResizeBar[i]->setEnabled(isResizable()); | 884 | if (mResizeBar[i] != NULL) |
879 | if (mResizeHandle[i]) mResizeHandle[i]->setEnabled(isResizable()); | 885 | { |
886 | mResizeBar[i]->setEnabled(isResizable()); | ||
887 | } | ||
888 | if (mResizeHandle[i] != NULL) | ||
889 | { | ||
890 | mResizeHandle[i]->setEnabled(isResizable()); | ||
891 | } | ||
880 | } | 892 | } |
881 | 893 | ||
882 | mMinimized = FALSE; | 894 | mMinimized = FALSE; |