don't rotate calc shapes if twoCellAnchor, partial fix bnc#762542
Change-Id: I3ccf6d87db2e9c33f2adaf92e138018f2e27528b
diff --git a/sc/source/filter/oox/drawingfragment.cxx b/sc/source/filter/oox/drawingfragment.cxx
index f041287..9b7d07a 100644
--- a/sc/source/filter/oox/drawingfragment.cxx
+++ b/sc/source/filter/oox/drawingfragment.cxx
@@ -257,6 +257,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) )
{