diff options
author | Kelly Washington <kelly@lindenlab.com> | 2012-12-13 08:44:22 -0800 |
---|---|---|
committer | Kelly Washington <kelly@lindenlab.com> | 2012-12-13 08:44:22 -0800 |
commit | 70c6b0859578dfb04d8e53656a60f242240b9cbe (patch) | |
tree | 2464842f5a72bd3a861b6f943f4864d754c0aba7 /indra | |
parent | a9ada0cc6a1418da0908f995b1369912a270b22d (diff) |
MAINT-1995 Names of banned and allowed residents are not shown in Access tab of the About Land dialog
Code by Richard, reviewed by merov and kelly
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 3e0653e9a4..5b0894b064 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -580,6 +580,15 @@ BOOL LLScrollListCtrl::addItem( LLScrollListItem* item, EAddPosition pos, BOOL r addColumn(col_params); } + S32 num_cols = item->getNumColumns();
+ S32 i = 0;
+ for (LLScrollListCell* cell = item->getColumn(i); i < num_cols; cell = item->getColumn(++i))
+ {
+ if (i >= (S32)mColumnsIndexed.size()) break;
+
+ cell->setWidth(mColumnsIndexed[i]->getWidth());
+ } + updateLineHeightInsert(item); updateLayout(); |