incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1359009 - /incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
Date Mon, 09 Jul 2012 09:53:59 GMT
Author: af
Date: Mon Jul  9 09:53:58 2012
New Revision: 1359009

URL: http://svn.apache.org/viewvc?rev=1359009&view=rev
Log:
#i119536# Fixed rotation when importing PPT.

          Reported by: Li Feng Wang
          Patch by: Ma Bingbing
          Reviewed by: Arming Le Grand and Andre Fischer

Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx?rev=1359009&r1=1359008&r2=1359009&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx Mon Jul  9 09:53:58 2012
@@ -1482,17 +1482,6 @@ sal_Bool EscherPropertyContainer::Create
                     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 )



Mime
View raw message