Kaydet (Commit) 3f1cbf94 authored tarafından László Németh's avatar László Németh

tdf#91122 docx import: fix wrong vertical position of OLE object shape

Change-Id: I34cdae7182631ca2d6e86f94f244e9362fe9dc6b
üst dae152ac
......@@ -1076,8 +1076,13 @@ Reference< XShape > ComplexShape::implConvertAndInsert( const Reference< XShapes
// try to create a picture object
if( !aGraphicPath.isEmpty() )
return SimpleShape::createPictureObject(rxShapes, rShapeRect, aGraphicPath);
{
Reference< XShape > xShape = SimpleShape::createPictureObject(rxShapes, rShapeRect, aGraphicPath);
// AS_CHARACTER shape: vertical orientation default is bottom, MSO default is top.
if ( maTypeModel.maPosition != "absolute" && maTypeModel.maPosition != "relative" )
PropertySet( xShape ).setAnyProperty( PROP_VertOrient, makeAny(text::VertOrientation::TOP));
return xShape;
}
// default: try to create a custom shape
return CustomShape::implConvertAndInsert( rxShapes, rShapeRect );
}
......
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