summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacobo Aragunde PĂ©rez <jaragunde@igalia.com>2013-10-25 09:09:55 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-14 11:26:34 +0000
commitcc8c94b362e89d7d7e974119be77679f2f344d91 (patch)
tree278eb318842b4688cb1eb212df7ecbc54f51ea2d
parent4de85c0613c1eb035bed204b604557d84217193a (diff)
fdo#70838: Fix size issue when exporting shapes to docx.
We were saving the size of the rotated shape bounding box in the docx file but that size was being interpreted as the size of the original, unrotated shape. Now VMLExport::Commit will use the dimensions of the rectangle received as a parameter to save to the file instead of those returned by SdrAttrObject ->GetSnapRect Change-Id: I53670db77f5e5320a87579dcd56617d5ccf1851a Reviewed-on: https://gerrit.libreoffice.org/6432 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--oox/source/export/vmlexport.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index 8eeb9dc2183b..f87e773c112d 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -326,15 +326,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
if ( m_nShapeType == ESCHER_ShpInst_Line )
AddLineDimensions( rRect );
else
- {
- Rectangle aRect(rRect);
- if (m_pNdTopLeft)
- {
- aRect = m_pSdrObject->GetSnapRect();
- aRect -= *m_pNdTopLeft;
- }
- AddRectangleDimensions( *m_pShapeStyle, aRect );
- }
+ AddRectangleDimensions( *m_pShapeStyle, rRect );
// properties
bool bAlreadyWritten[ 0xFFF ];