From dfd1ff2164bf8f0317a0549fe3b67899233c6b17 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Jul 2014 13:35:15 +0100 Subject: coverity#1226484 Using invalid iterator Change-Id: I30e4d365fb2a851ea8d81e9f45a6f4d0bf6d7ec7 --- oox/source/drawingml/fillproperties.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox/source/drawingml/fillproperties.cxx') diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 4a7227f9b96e..fb02bdac0a2d 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -503,7 +503,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, nShapeRotation = 180*60000 - nShapeRotation; } - aGradientStops.erase( aWidestSegmentStart ); + aGradientStops.erase( aWidestSegmentStart++ ); // Look for which is widest now aIt = boost::next(aGradientStops.begin()); -- cgit