diff options
| author | Merov Linden <merov@lindenlab.com> | 2011-10-07 18:44:16 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2011-10-07 18:44:16 -0700 |
| commit | 60c85dff83918876b23ab1ff1dfd336fc9dbc839 (patch) | |
| tree | 74a99cfc8bcf36e6354c7f74c1f7a2c7ae054140 /indra/llui/llfloater.cpp | |
| parent | feabe29f356ca2bae5275a5cb0d772614166d2c5 (diff) | |
| parent | 3a280f747dae737fd03bd4c2c886aa6231c0b703 (diff) | |
Pull from richard/viewer-experience-fui/
Diffstat (limited to 'indra/llui/llfloater.cpp')
| -rw-r--r-- | indra/llui/llfloater.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index c28bcc2ec9..cc49238a0b 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -840,9 +840,9 @@ void LLFloater::applyRectControl() if (mRectControl.size() > 1) { const LLRect& rect = getControlGroup()->getRect(mRectControl); - if (rect.getWidth() > 0 && rect.getHeight() > 0) + if (rect.notEmpty()) { - translate( rect.mLeft - getRect().mLeft, rect.mBottom - getRect().mBottom); + setOrigin(rect.mLeft, rect.mBottom); if (mResizable) { reshape(llmax(mMinWidth, rect.getWidth()), llmax(mMinHeight, rect.getHeight())); |
