diff options
Diffstat (limited to 'linden/indra/llui/llspinctrl.cpp')
-rw-r--r-- | linden/indra/llui/llspinctrl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp index 0cd9390..4bd79e6 100644 --- a/linden/indra/llui/llspinctrl.cpp +++ b/linden/indra/llui/llspinctrl.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -128,7 +128,7 @@ LLSpinCtrl::LLSpinCtrl( const LLString& name, const LLRect& rect, const LLString | |||
128 | &LLLineEditor::prevalidateFloat ); | 128 | &LLLineEditor::prevalidateFloat ); |
129 | mEditor->setFollowsLeft(); | 129 | mEditor->setFollowsLeft(); |
130 | mEditor->setFollowsBottom(); | 130 | mEditor->setFollowsBottom(); |
131 | mEditor->setFocusReceivedCallback( &LLSpinCtrl::onEditorGainFocus ); | 131 | mEditor->setFocusReceivedCallback( &LLSpinCtrl::onEditorGainFocus, this ); |
132 | //RN: this seems to be a BAD IDEA, as it makes the editor behavior different when it has focus | 132 | //RN: this seems to be a BAD IDEA, as it makes the editor behavior different when it has focus |
133 | // than when it doesn't. Instead, if you always have to double click to select all the text, | 133 | // than when it doesn't. Instead, if you always have to double click to select all the text, |
134 | // it's easier to understand | 134 | // it's easier to understand |
@@ -137,7 +137,7 @@ LLSpinCtrl::LLSpinCtrl( const LLString& name, const LLRect& rect, const LLString | |||
137 | addChild(mEditor); | 137 | addChild(mEditor); |
138 | 138 | ||
139 | updateEditor(); | 139 | updateEditor(); |
140 | setSpanChildren( TRUE ); | 140 | setUseBoundingRect( TRUE ); |
141 | } | 141 | } |
142 | 142 | ||
143 | LLSpinCtrl::~LLSpinCtrl() | 143 | LLSpinCtrl::~LLSpinCtrl() |
@@ -230,7 +230,7 @@ void LLSpinCtrl::onDownBtn( void *userdata ) | |||
230 | } | 230 | } |
231 | 231 | ||
232 | // static | 232 | // static |
233 | void LLSpinCtrl::onEditorGainFocus( LLUICtrl* caller, void *userdata ) | 233 | void LLSpinCtrl::onEditorGainFocus( LLFocusableElement* caller, void *userdata ) |
234 | { | 234 | { |
235 | LLSpinCtrl* self = (LLSpinCtrl*) userdata; | 235 | LLSpinCtrl* self = (LLSpinCtrl*) userdata; |
236 | llassert( caller == self->mEditor ); | 236 | llassert( caller == self->mEditor ); |