summaryrefslogtreecommitdiff
path: root/indra/llui/llscrolllistctrl.cpp
diff options
context:
space:
mode:
authorKent Quirk <q@lindenlab.com>2010-03-18 16:53:41 -0400
committerKent Quirk <q@lindenlab.com>2010-03-18 16:53:41 -0400
commit63a0e89fb569216642bd9e023c503741feb9fec2 (patch)
tree07a79f2b75ab1c5ac6fb9900ea29aa748d1c26b6 /indra/llui/llscrolllistctrl.cpp
parent3e2db3d3364e3bb146da9d94b25638bd9fd7de29 (diff)
parent615f2cb18e3ade418dbfeca738fad58a6022a9be (diff)
merge from hotfix to viewer-2-0 and resolve conflicts
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r--indra/llui/llscrolllistctrl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp
index 18ec5b51dd..77caaaa425 100644
--- a/indra/llui/llscrolllistctrl.cpp
+++ b/indra/llui/llscrolllistctrl.cpp
@@ -630,9 +630,7 @@ void LLScrollListCtrl::calcColumnWidths()
LLScrollListCell* cellp = (*iter)->getColumn(column->mIndex);
if (!cellp) continue;
- // get text value width only for text cells
- column->mMaxContentWidth = cellp->isText() ?
- llmax(LLFontGL::getFontSansSerifSmall()->getWidth(cellp->getValue().asString()) + mColumnPadding + COLUMN_TEXT_PADDING, column->mMaxContentWidth) : column->mMaxContentWidth;
+ column->mMaxContentWidth = llmax(LLFontGL::getFontSansSerifSmall()->getWidth(cellp->getValue().asString()) + mColumnPadding + COLUMN_TEXT_PADDING, column->mMaxContentWidth);
}
max_item_width += column->mMaxContentWidth;