diff options
author | Kent Quirk <q@lindenlab.com> | 2010-02-16 23:36:54 -0500 |
---|---|---|
committer | Kent Quirk <q@lindenlab.com> | 2010-02-16 23:36:54 -0500 |
commit | e3a71c74e24cc052bab14544730bcd9bcef35ca8 (patch) | |
tree | 109f6c98feea64f01330960407634eee9196356b /indra/newview/lllocationinputctrl.cpp | |
parent | 69032d8d9d660de5b3c97589b7cc55dac70b153c (diff) | |
parent | 6552874c82ed5ed09cf0a4d16351cdd5c8698755 (diff) |
automated merge from viewer-2-0
Diffstat (limited to 'indra/newview/lllocationinputctrl.cpp')
-rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index f48c96190f..c66d067779 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -833,10 +833,13 @@ void LLLocationInputCtrl::refreshParcelIcons() mDamageText->setVisible(false); } - S32 left_pad, right_pad; - mTextEntry->getTextPadding(&left_pad, &right_pad); - right_pad = mTextEntry->getRect().mRight - x; - mTextEntry->setTextPadding(left_pad, right_pad); + if (mTextEntry) + { + S32 left_pad, right_pad; + mTextEntry->getTextPadding(&left_pad, &right_pad); + right_pad = mTextEntry->getRect().mRight - x; + mTextEntry->setTextPadding(left_pad, right_pad); + } } void LLLocationInputCtrl::refreshHealth() |