summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-01 16:21:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-01 21:02:12 +0000
commitda5c8e2821d7a772793deeecf8a27ab02ae14a4f (patch)
tree02de7b10bd2cd8edc957261d2f3804dc0a0bca70 /sw
parentb59196e1d7843367a80fb67288949eb4a6c4c463 (diff)
coverity#735646 Division or modulo by zero
Change-Id: I0567cfbf73b99f11649a08c73ea67d692691053c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/dbui/mailmergehelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx b/sw/source/uibase/dbui/mailmergehelper.cxx
index 81c640929817..798c167dacd5 100644
--- a/sw/source/uibase/dbui/mailmergehelper.cxx
+++ b/sw/source/uibase/dbui/mailmergehelper.cxx
@@ -351,7 +351,7 @@ void SwAddressPreview::Paint(const Rectangle&)
void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt )
{
Window::MouseButtonDown(rMEvt);
- if(rMEvt.IsLeft() && ( pImpl->nRows || pImpl->nColumns))
+ if (rMEvt.IsLeft() && pImpl->nRows && pImpl->nColumns)
{
//determine the selected address
const Point& rMousePos = rMEvt.GetPosPixel();