diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-09-01 10:46:42 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-02 13:31:11 +0000 |
commit | cc88a88caad591270760d947848ad0a032d32bdb (patch) | |
tree | 725fa8eee3184bf7ae7cf574f6bb2772d6c0df05 /oox | |
parent | b9bf1123f35d78fb98964fd56b50f330ee3efd71 (diff) |
tdf#93830 txXfrm offset workaround works in rounded rectangle case as well
Change-Id: I5d8df5c0d55e8dfd7c978b16b2b220c127f3dac9
Reviewed-on: https://gerrit.libreoffice.org/18226
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/transform2dcontext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx index 10bd727ac902..3f4b35f33639 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -66,7 +66,8 @@ ContextHandlerRef Transform2DContext::onCreateContext( sal_Int32 aElementToken, { const OUString sXValue = rAttribs.getString( XML_x ).get(); const OUString sYValue = rAttribs.getString( XML_y ).get(); - if( !sXValue.isEmpty() && nType == XML_rect ) + + if( !sXValue.isEmpty() ) mrShape.getTextBody()->getTextProperties().moTextOffLeft = GetCoordinate( sXValue.toInt32() - mrShape.getPosition().X ); if( !sYValue.isEmpty() ) mrShape.getTextBody()->getTextProperties().moTextOffUpper = GetCoordinate( sYValue.toInt32() - mrShape.getPosition().Y ); |