diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-06 12:29:46 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-06 19:38:16 +0200 |
commit | 38e209eee11fe921e3c3c172518b17eae2faea66 (patch) | |
tree | 7a5b06cc3d153739e1ba2918ac7d4cbea1e13656 | |
parent | 33439c566e4c9cc2637c49ac729b86a57410fa48 (diff) |
bnc#779642 VML import: handle drawinglayer rectangle inset
Change-Id: If8b064ca9a52bb02ff41f07e00142702a29df818
(cherry picked from commit 870a2394a87c77740daf41e1aa81b130113f8e00)
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 44910b5a965d..bcdf65cab4a6 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -529,7 +529,16 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes } if (getTextBox()) + { getTextBox()->convert(xShape); + if (getTextBox()->borderDistanceSet) + { + PropertySet(xShape).setAnyProperty(PROP_TextLeftDistance, makeAny(sal_Int32(getTextBox()->borderDistanceLeft))); + PropertySet(xShape).setAnyProperty(PROP_TextUpperDistance, makeAny(sal_Int32(getTextBox()->borderDistanceTop))); + PropertySet(xShape).setAnyProperty(PROP_TextRightDistance, makeAny(sal_Int32(getTextBox()->borderDistanceRight))); + PropertySet(xShape).setAnyProperty(PROP_TextLowerDistance, makeAny(sal_Int32(getTextBox()->borderDistanceBottom))); + } + } } // Import Legacy Fragments (if any) |