Kaydet (Commit) 42e6ec35 authored tarafından Andre Fischer's avatar Andre Fischer

#i119536# Fixed rotation when importing PPT.

Reported by: Li Feng Wang
Patch by: Ma Bingbing
Reviewed by: Arming Le Grand and Andre Fischer
üst f425d556
......@@ -1482,17 +1482,6 @@ sal_Bool EscherPropertyContainer::CreateGraphicProperties(
pGraphicAttr->SetMirrorFlags( BMP_MIRROR_HORZ );
if ( bIsGraphicMtf )
AddOpt( ESCHER_Prop_Rotation, ( ( ((sal_Int32)nAngle << 16 ) / 10 ) + 0x8000 ) &~ 0xffff );
else
{
pGraphicAttr->SetRotation( nAngle );
if ( nAngle && pShapeBoundRect ) // up to xp ppoint does not rotate bitmaps !
{
Polygon aPoly( *pShapeBoundRect );
aPoly.Rotate( pShapeBoundRect->TopLeft(), nAngle );
*pShapeBoundRect = aPoly.GetBoundRect();
bSuppressRotation = sal_True;
}
}
}
if ( eBitmapMode == ::com::sun::star::drawing::BitmapMode_REPEAT )
......
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