[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - oox/source

Muthu Subramanian sumuthu at collabora.com
Mon Apr 28 02:01:16 PDT 2014


 oox/source/drawingml/transform2dcontext.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 66c01c7ba3882555642ce0c353ea3abf15bda2b5
Author: Muthu Subramanian <sumuthu at collabora.com>
Date:   Wed Mar 26 16:05:44 2014 +0530

    n#862510: Fix text rotation.
    
    Fix breaks document in n#783433 - the one there is
    damaged - resaving it using mso 2010 should fix the problem there.
    
    Change-Id: Ib2ee7ab20489d716dc189ac6810d705763a16476
    (cherry picked from commit e3e12b1d1e36e1a0d4fc4c6423b584d677693897)
    Signed-off-by: Andras Timar <andras.timar at collabora.com>

diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx
index 8b9040c..d3a7c4b 100644
--- a/oox/source/drawingml/transform2dcontext.cxx
+++ b/oox/source/drawingml/transform2dcontext.cxx
@@ -46,7 +46,8 @@ Transform2DContext::Transform2DContext( ContextHandler2Helper& rParent, const At
     }
     else
     {
-        mrShape.getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot );
+        if( rAttribs.hasAttribute( XML_rot ) )
+            mrShape.getTextBody()->getTextProperties().moRotation = -rAttribs.getInteger( XML_rot ).get();
     }
 }
 


More information about the Libreoffice-commits mailing list