[Libreoffice-commits] core.git: sw/source

Jacobo Aragunde Pérez jaragunde at igalia.com
Wed Mar 5 02:06:56 PST 2014


 sw/source/filter/ww8/docxsdrexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aad35298c43795e60605e0ea71290642687c8fc4
Author: Jacobo Aragunde Pérez <jaragunde at igalia.com>
Date:   Fri Feb 28 19:47:44 2014 +0100

    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

diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index d07e477..5ed1811 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();


More information about the Libreoffice-commits mailing list