summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-09-23 17:19:38 -0700
committerRichard Linden <none@none>2011-09-23 17:19:38 -0700
commitc27d6ee5aa8428cf82486264779f266b9a2fb00a (patch)
treee91436793d3e56dcc0e3f13b91549d85c8556e7b
parentb6d7f99f065c87f7409a1e5e1ba1b59f3f4a3efb (diff)
EXP-1239 FIX make toolbars wrap when there is not enough room
fixed overeager wrapping
-rw-r--r--indra/llui/lltoolbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp
index 3311ed4a1b..e5ffe391a6 100644
--- a/indra/llui/lltoolbar.cpp
+++ b/indra/llui/lltoolbar.cpp
@@ -277,7 +277,7 @@ void LLToolBar::updateLayoutAsNeeded()
// wrap if needed
if (mWrap
&& row_running_length + button_length > max_length // out of room...
- && cur_start != 0) // ...and not first button in row
+ && cur_start != row_pad_start) // ...and not first button in row
{
if (orientation == LLLayoutStack::VERTICAL)
{ // row girth (width in this case) is clamped to allowable button widths