diff options
author | Noel Power <noel.power@novell.com> | 2012-05-30 14:06:27 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-05-30 14:31:40 +0100 |
commit | 1abc0695d770eebd21256a86aeee14a5384d84c7 (patch) | |
tree | 71c5e1f42469e4107da4e1bf5de96205fa1f96ab /sc | |
parent | dbb385df0fc83c36cfc91b82979fabea868592c2 (diff) |
don't rotate calc shapes if twoCellAnchor, partial fix bnc#762542
Change-Id: I3ccf6d87db2e9c33f2adaf92e138018f2e27528b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/drawingfragment.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/oox/drawingfragment.cxx b/sc/source/filter/oox/drawingfragment.cxx index f04128762507..9b7d07aa7fc5 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) ) { |