diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llcheckboxctrl.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/llui/llcheckboxctrl.cpp b/linden/indra/llui/llcheckboxctrl.cpp index ff46a80..ecb6342 100644 --- a/linden/indra/llui/llcheckboxctrl.cpp +++ b/linden/indra/llui/llcheckboxctrl.cpp | |||
@@ -89,7 +89,16 @@ LLCheckBoxCtrl::LLCheckBoxCtrl(const LLString& name, const LLRect& rect, | |||
89 | LLCHECKBOXCTRL_VPAD + 1, // padding to get better alignment | 89 | LLCHECKBOXCTRL_VPAD + 1, // padding to get better alignment |
90 | text_width + LLCHECKBOXCTRL_HPAD, | 90 | text_width + LLCHECKBOXCTRL_HPAD, |
91 | text_height ); | 91 | text_height ); |
92 | mLabel = new LLTextBox( "CheckboxCtrl Label", label_rect, label.c_str(), mFont ); | 92 | |
93 | // *HACK Get rid of this with SL-55508... | ||
94 | // this allows blank check boxes and radio boxes for now | ||
95 | LLString local_label = label; | ||
96 | if(local_label.empty()) | ||
97 | { | ||
98 | local_label = " "; | ||
99 | } | ||
100 | |||
101 | mLabel = new LLTextBox( "CheckboxCtrl Label", label_rect, local_label.c_str(), mFont ); | ||
93 | mLabel->setFollowsLeft(); | 102 | mLabel->setFollowsLeft(); |
94 | mLabel->setFollowsBottom(); | 103 | mLabel->setFollowsBottom(); |
95 | addChild(mLabel); | 104 | addChild(mLabel); |
@@ -212,7 +221,7 @@ void LLCheckBoxCtrl::reshape(S32 width, S32 height, BOOL called_from_parent) | |||
212 | 221 | ||
213 | void LLCheckBoxCtrl::draw() | 222 | void LLCheckBoxCtrl::draw() |
214 | { | 223 | { |
215 | if (mEnabled) | 224 | if (getEnabled()) |
216 | { | 225 | { |
217 | mLabel->setColor( mTextEnabledColor ); | 226 | mLabel->setColor( mTextEnabledColor ); |
218 | } | 227 | } |