summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lltoolview.cpp')
-rw-r--r--indra/newview/lltoolview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lltoolview.cpp b/indra/newview/lltoolview.cpp
index b3f0dc4883..93729a5b91 100644
--- a/indra/newview/lltoolview.cpp
+++ b/indra/newview/lltoolview.cpp
@@ -130,7 +130,7 @@ LLRect LLToolView::getButtonRect(S32 button_index)
const S32 HORIZ_SPACING = TOOL_SIZE + 5;
const S32 VERT_SPACING = TOOL_SIZE + 14;
- S32 tools_per_row = mRect.getWidth() / HORIZ_SPACING;
+ S32 tools_per_row = getRect().getWidth() / HORIZ_SPACING;
S32 row = button_index / tools_per_row;
S32 column = button_index % tools_per_row;
@@ -196,3 +196,4 @@ void LLToolView::onClickToolButton(void* userdata)
}
+