[PATCH 5/7] don't rotate calc shapes if twoCellAnchor, partial fix bnc#762542
Noel Power
noel.power at novell.com
Wed May 30 06:06:27 PDT 2012
Change-Id: I3ccf6d87db2e9c33f2adaf92e138018f2e27528b
---
oox/source/xls/drawingfragment.cxx | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/oox/source/xls/drawingfragment.cxx b/oox/source/xls/drawingfragment.cxx
index 64f0164..c547b76 100644
--- a/oox/source/xls/drawingfragment.cxx
+++ b/oox/source/xls/drawingfragment.cxx
@@ -274,6 +274,10 @@ void DrawingFragment::onEndElement()
case XDR_TOKEN( twoCellAnchor ):
if( mxDrawPage.is() && mxShape.get() && mxAnchor.get() )
{
+ // Rotation is decided by orientation of shape determined
+ // by the anchor position given by 'twoCellAnchor'
+ if ( getCurrentElement() == XDR_TOKEN( twoCellAnchor ) )
+ mxShape->setRotation(0);
EmuRectangle aShapeRectEmu = mxAnchor->calcAnchorRectEmu( getDrawPageSize() );
if( (aShapeRectEmu.X >= 0) && (aShapeRectEmu.Y >= 0) && (aShapeRectEmu.Width >= 0) && (aShapeRectEmu.Height >= 0) )
{
--
1.7.3.4
--------------070404060000030700010400--
More information about the LibreOffice
mailing list