summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-22 16:21:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 21:56:13 +0200
commitc816cb847da9a3302f23e113171c81fed6b319c0 (patch)
tree59c68cf6d5008e65dbdd379cbbe6fca5a887ee8b /basegfx
parent7354da6ccfd0492a3f38ff07ce65500ec9f727b7 (diff)
pvs-studio: V571 Recurring check
Change-Id: I1ad7bcfa557b38488adf26b434433e6bae259f43 Reviewed-on: https://gerrit.libreoffice.org/62190 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/tools/unopolypolygon.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index e0b5b85f079b..2f65873e8577 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -389,7 +389,7 @@ namespace unotools
// empty polygon - impossible to specify _any_
// legal value except 0 here!
- if( !nPolyCount && nPointIndex )
+ if( !nPolyCount)
throw lang::IndexOutOfBoundsException();
nFirstPoint = nPointIndex;