Kaydet (Commit) 12c0d40f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1202784 Division or modulo by zero

Change-Id: I982b72abd92584b9ed97de593c17f2cf0b8b3667
üst 902cafe6
...@@ -723,7 +723,7 @@ void ThumbnailView::MakeItemVisible( sal_uInt16 nItemId ) ...@@ -723,7 +723,7 @@ void ThumbnailView::MakeItemVisible( sal_uInt16 nItemId )
bFound = true; bFound = true;
} }
} }
sal_uInt16 nRow = nPos / mnCols; sal_uInt16 nRow = mnCols ? nPos / mnCols : 0;
// Move the visible rows as little as possible to include that one // Move the visible rows as little as possible to include that one
if ( nRow < mnFirstLine ) if ( nRow < mnFirstLine )
......
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