incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1167620 - /incubator/ooo/trunk/main/svtools/source/filter/filter.cxx
Date Sat, 10 Sep 2011 22:43:35 GMT
Author: erack
Date: Sat Sep 10 22:43:35 2011
New Revision: 1167620

URL: http://svn.apache.org/viewvc?rev=1167620&view=rev
Log:
impress212: #i81610# fixed animation export

# User sj <sj@openoffice.org>

Modified:
    incubator/ooo/trunk/main/svtools/source/filter/filter.cxx

Modified: incubator/ooo/trunk/main/svtools/source/filter/filter.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svtools/source/filter/filter.cxx?rev=1167620&r1=1167619&r2=1167620&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svtools/source/filter/filter.cxx (original)
+++ incubator/ooo/trunk/main/svtools/source/filter/filter.cxx Sat Sep 10 22:43:35 2011
@@ -832,19 +832,17 @@ static Graphic ImpGetScaledGraphic( cons
 				aMap.SetScaleY( aFrac );
 
 				Size aOldSize = aBitmap.GetSizePixel();
-				aBitmap.SetPrefMapMode( aMap );
-				aBitmap.SetPrefSize( Size( aOldSize.Width() * 100,
+				aGraphic = rGraphic;
+				aGraphic.SetPrefMapMode( aMap );
+				aGraphic.SetPrefSize( Size( aOldSize.Width() * 100,
 										   aOldSize.Height() * 100 ) );
-
-				aGraphic = Graphic( aBitmap );
 			}
 			// Groesse wird eingestellt
 			else if( nMode == 2 )
 			{
-				BitmapEx aBitmapEx( rGraphic.GetBitmapEx() );
-				aBitmapEx.SetPrefMapMode( MapMode( MAP_100TH_MM ) );
-				aBitmapEx.SetPrefSize( Size( nLogicalWidth, nLogicalHeight ) );
-				aGraphic = Graphic( aBitmapEx );
+				aGraphic = rGraphic;
+				aGraphic.SetPrefMapMode( MapMode( MAP_100TH_MM ) );
+				aGraphic.SetPrefSize( Size( nLogicalWidth, nLogicalHeight ) );
 			}
 			else
 				aGraphic = rGraphic;



Mime
View raw message