diff options
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 7b94a158a204..ad811a0d3065 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -1023,7 +1023,7 @@ Reference< XShape > BezierShape::implConvertAndInsert( const Reference< XShapes { // If we have an 'x' in the last part of the path it means it is closed... sal_Int32 nPos = maShapeModel.maVmlPath.lastIndexOf(','); - if ( nPos != -1 && maShapeModel.maVmlPath.indexOf(nPos, 'x') != -1 ) + if ( nPos != -1 && maShapeModel.maVmlPath.indexOf('x', nPos) != -1 ) { const_cast<BezierShape*>( this )->setService( "com.sun.star.drawing.ClosedBezierShape" ); } |