From 1580aa9249a483e51b550a539dd9bff0200f4426 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Thu, 21 Feb 2013 21:35:33 -0600 Subject: coverity#736009 Explicit null dereferenced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If6ae3637f901ed8d424125c19e04f64c3a27c126 Reviewed-on: https://gerrit.libreoffice.org/2325 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmloff/source/draw/xexptran.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index 215844461fe8..bb53c66350c4 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -1610,7 +1610,7 @@ void SdXMLImExSvgDElement::AddPolygon( for(sal_Int32 a(0L); a < nCnt; a++) { - if(!pFlags || drawing::PolygonFlags_CONTROL != *pFlagArray) + if(!pFlags || drawing::PolygonFlags_CONTROL != *pFlagArray++) { bool bDidWriteAsCurve(false); @@ -2093,7 +2093,6 @@ void SdXMLImExSvgDElement::AddPolygon( // next point pPointArray++; - pFlagArray++; } // close path if closed poly -- cgit