diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-21 21:35:33 -0600 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-26 13:14:26 +0000 |
commit | 1580aa9249a483e51b550a539dd9bff0200f4426 (patch) | |
tree | c84f118f4022095b8f213bf9c587172a1a6b81c3 | |
parent | 633fca5f3caedac6ea59be99809ffa899cd1bfff (diff) |
coverity#736009 Explicit null dereferenced
Change-Id: If6ae3637f901ed8d424125c19e04f64c3a27c126
Reviewed-on: https://gerrit.libreoffice.org/2325
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 |