summaryrefslogtreecommitdiff
path: root/oox/source/vml/vmlshape.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-04-23 11:48:42 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-04-23 17:04:43 +0200
commita5b3bf724e355ceb476991f4ecaa56fd019e3067 (patch)
treece884c469f75a992423edf2ff3447fd0d08698a9 /oox/source/vml/vmlshape.cxx
parent6a80adb094d87cddc103d84d5616e1ecae899889 (diff)
n#757890 oox: implement mso-position-horizontal shape property for textframes
Diffstat (limited to 'oox/source/vml/vmlshape.cxx')
-rw-r--r--oox/source/vml/vmlshape.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 2b61e91aa783..4000932ca127 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -389,6 +389,8 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
{
PropertySet( xShape ).setAnyProperty( PROP_FrameIsAutomaticHeight, makeAny( maTypeModel.mbAutoHeight ) );
PropertySet( xShape ).setAnyProperty( PROP_SizeType, makeAny( maTypeModel.mbAutoHeight ? SizeType::MIN : SizeType::FIX ) );
+ if (maTypeModel.maPositionHorizontal == "center")
+ PropertySet(xShape).setAnyProperty(PROP_HoriOrient, makeAny(text::HoriOrientation::CENTER));
}
// Import Legacy Fragments (if any)