summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-18 11:56:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-18 12:21:43 +0100
commit12c0d40f82edb6bcc49cb3aa537fade6277047b8 (patch)
tree865b645b5eb014c023640d0147f08774e7aff409 /sfx2
parent902cafe656a017b996e72313274e412bfa0ba838 (diff)
coverity#1202784 Division or modulo by zero
Change-Id: I982b72abd92584b9ed97de593c17f2cf0b8b3667
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/thumbnailview.cxx2
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 )