diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-05-29 14:47:54 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-05-30 14:03:32 +0200 |
commit | 875737ee9dc44771fe0ebf4f2cba705e13555f7d (patch) | |
tree | c51c922ada251e464504327b8f9929a1fd90ee50 /oox | |
parent | 6fb91a8fc2ded5c363dbc7115e9281453d7611b8 (diff) |
bnc#817956 VML import of mso-position-vertical-relative:margin
Change-Id: I86464c44022ef8c8a8037d4228bb2a6409fc77af
(cherry picked from commit f2720b87093968670e3fb47d24d4952f1631a654)
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index b4b3e9e8b3bc..1ec5c243ed56 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -457,6 +457,10 @@ void lcl_SetAnchorType(PropertySet& rPropSet, const ShapeTypeModel& rTypeModel) { rPropSet.setProperty(PROP_VertOrientRelation, text::RelOrientation::PAGE_FRAME); } + else if ( rTypeModel.maPositionVerticalRelative == "margin" ) + { + rPropSet.setProperty(PROP_VertOrientRelation, text::RelOrientation::PAGE_PRINT_AREA); + } else { // Vertical placement relative to margin, because parent style must not modify vertical position |