Kaydet (Commit) d0a1cf01 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Andras Timar

tdf#119234 OOXML Shapes from Word fail to render

regression from
	commit 65e4a776
	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: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit df71ea1b)
Reviewed-on: https://gerrit.libreoffice.org/59000
(cherry picked from commit a05df174)
üst 46a377f8
...@@ -1015,7 +1015,7 @@ Reference< XShape > BezierShape::implConvertAndInsert( const Reference< XShapes ...@@ -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... // If we have an 'x' in the last part of the path it means it is closed...
sal_Int32 nPos = maShapeModel.maVmlPath.lastIndexOf(','); 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" ); const_cast<BezierShape*>( this )->setService( "com.sun.star.drawing.ClosedBezierShape" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment