diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-14 15:08:57 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-21 10:53:38 +0200 |
commit | d0a1cf01c6b40127c6dfdb455224b56fe86718e5 (patch) | |
tree | 62627096e0cf2b4ef874317475220eb99e7e735a /oox | |
parent | 46a377f8e33e4a12bce72f6df6737a0445174ecf (diff) |
tdf#119234 OOXML Shapes from Word fail to render
regression from
commit 65e4a776e8315fd61fd67ad00d28985b11f0b79e
simplify some OUString::copy calls
I got the params switched around
Change-Id: I68da0ae681f2b886e35f74bd72de0c482c843ae9
Reviewed-on: https://gerrit.libreoffice.org/58986
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit df71ea1b01c3fd35d959053c84f615f661b69f8a)
Reviewed-on: https://gerrit.libreoffice.org/59000
(cherry picked from commit a05df1744a9da71f255b9b413df59f321d81bb33)
Diffstat (limited to 'oox')
-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 e4a2823cb398..5868c9a57880 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -1015,7 +1015,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" ); } |