summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-05-30 14:06:27 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-11 12:09:24 +0200
commiteee0a07a8119bf097b680e4481302f3ab2e68eac (patch)
tree6c8991cfa82f21be769e9f865e4260b2bae79b23
parentedd7b00431f5d3c008437e974b93dda804300bbf (diff)
don't rotate calc shapes if twoCellAnchor, partial fix bnc#762542
Change-Id: I3ccf6d87db2e9c33f2adaf92e138018f2e27528b Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rw-r--r--oox/source/xls/drawingfragment.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/xls/drawingfragment.cxx b/oox/source/xls/drawingfragment.cxx
index 64f0164e49b1..c547b76bd9b3 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) )
{