diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-18 11:56:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-18 12:21:43 +0100 |
commit | 12c0d40f82edb6bcc49cb3aa537fade6277047b8 (patch) | |
tree | 865b645b5eb014c023640d0147f08774e7aff409 | |
parent | 902cafe656a017b996e72313274e412bfa0ba838 (diff) |
coverity#1202784 Division or modulo by zero
Change-Id: I982b72abd92584b9ed97de593c17f2cf0b8b3667
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 33263344fb1a..a6115fd7b69e 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -723,7 +723,7 @@ void ThumbnailView::MakeItemVisible( sal_uInt16 nItemId ) 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 if ( nRow < mnFirstLine ) |