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

New commits:
commit 66c01c7ba3882555642ce0c353ea3abf15bda2b5
Author: Muthu Subramanian <sumu...@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.ti...@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();
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to