Kaydet (Commit) 1abc0695 authored tarafından Noel Power's avatar Noel Power

don't rotate calc shapes if twoCellAnchor, partial fix bnc#762542

Change-Id: I3ccf6d87db2e9c33f2adaf92e138018f2e27528b
üst dbb385df
...@@ -257,6 +257,10 @@ void DrawingFragment::onEndElement() ...@@ -257,6 +257,10 @@ void DrawingFragment::onEndElement()
case XDR_TOKEN( twoCellAnchor ): case XDR_TOKEN( twoCellAnchor ):
if( mxDrawPage.is() && mxShape.get() && mxAnchor.get() ) 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() ); EmuRectangle aShapeRectEmu = mxAnchor->calcAnchorRectEmu( getDrawPageSize() );
if( (aShapeRectEmu.X >= 0) && (aShapeRectEmu.Y >= 0) && (aShapeRectEmu.Width >= 0) && (aShapeRectEmu.Height >= 0) ) if( (aShapeRectEmu.X >= 0) && (aShapeRectEmu.Y >= 0) && (aShapeRectEmu.Width >= 0) && (aShapeRectEmu.Height >= 0) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment