From c816cb847da9a3302f23e113171c81fed6b319c0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 22 Oct 2018 16:21:12 +0100 Subject: pvs-studio: V571 Recurring check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1ad7bcfa557b38488adf26b434433e6bae259f43 Reviewed-on: https://gerrit.libreoffice.org/62190 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basegfx/source/tools/unopolypolygon.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basegfx/source') 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; -- cgit