summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-02-28 19:47:44 +0100
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-03-05 11:06:27 +0100
commitaad35298c43795e60605e0ea71290642687c8fc4 (patch)
treee9c4bbec95cf0dabf2761b8c166c4c2797379680
parent0415e2696156b25226f21085a0716187f83c2f4b (diff)
fdo#70838: fix size error in rotated shapes in DrawingML
We should pass the natural rectangle instead of the bounding box as the size of the shape. Change-Id: I3ecee9d5645f280071c2872ecd08dbcf54574b8a
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index d07e477b06e8..5ed1811b3369 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -486,7 +486,7 @@ void DocxSdrExport::writeVMLDrawing(const SdrObject* sdrObj, const SwFrmFmt& rFr
void DocxSdrExport::Impl::writeDMLDrawing(const SdrObject* pSdrObject, const SwFrmFmt* pFrmFmt, int nAnchorId)
{
sax_fastparser::FSHelperPtr pFS = m_pSerializer;
- Size aSize(pSdrObject->GetSnapRect().GetWidth(), pSdrObject->GetSnapRect().GetHeight());
+ Size aSize(pSdrObject->GetLogicRect().GetWidth(), pSdrObject->GetLogicRect().GetHeight());
m_rSdrExport.startDMLAnchorInline(pFrmFmt, aSize);
sax_fastparser::FastAttributeList* pDocPrAttrList = pFS->createAttrList();