Skip to content
Snippets Groups Projects
Commit 42bfda2f authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix division by zero in LLScrollListCtrl draw

parent dce1ed0a
No related branches found
No related tags found
No related merge requests found
...@@ -689,7 +689,7 @@ bool LLScrollListCtrl::updateColumnWidths() ...@@ -689,7 +689,7 @@ bool LLScrollListCtrl::updateColumnWidths()
{ {
new_width = (S32)ll_round(column->mRelWidth*mItemListRect.getWidth()); new_width = (S32)ll_round(column->mRelWidth*mItemListRect.getWidth());
} }
else if (column->mDynamicWidth) else if (column->mDynamicWidth && mNumDynamicWidthColumns > 0)
{ {
new_width = (mItemListRect.getWidth() - mTotalStaticColumnWidth - mTotalColumnPadding) / mNumDynamicWidthColumns; new_width = (mItemListRect.getWidth() - mTotalStaticColumnWidth - mTotalColumnPadding) / mNumDynamicWidthColumns;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment