summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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