diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-05-29 14:47:54 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-05-30 15:54:14 +0200 |
commit | 56eeebb39a72fa90f945fe54e3af8a2c3a2918c2 (patch) | |
tree | 1276f52e9d0a0aec8cbe795f1ea198ab60b20345 /oox | |
parent | 9dc54d258cee67ce702f907504fcc776712cad47 (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 4cf771e71999..1c3cbac18a08 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -433,6 +433,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 |