Kaydet (Commit) dfcca541 authored tarafından Rafael Dominguez's avatar Rafael Dominguez

Avoid dividing by 0.

Change-Id: Iab1bd0dbe28403a6063a681f11c282b7f15ce7b6
üst 3752a5fa
......@@ -256,6 +256,9 @@ void ThumbnailView::CalculateItemPositions ()
// calculate maximum number of visible columns
mnCols = (sal_uInt16)((aWinSize.Width()-nScrBarWidth) / (mnItemWidth));
if (!mnCols)
mnCols = 1;
if ( mnUserCols && mnUserCols < mnCols )
mnCols = mnUserCols;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment