From aad35298c43795e60605e0ea71290642687c8fc4 Mon Sep 17 00:00:00 2001 From: Jacobo Aragunde PĂ©rez Date: Fri, 28 Feb 2014 19:47:44 +0100 Subject: 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 --- sw/source/filter/ww8/docxsdrexport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/filter/ww8/docxsdrexport.cxx') 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(); -- cgit v1.2.3