Kaydet (Commit) 9f62089d authored tarafından erack's avatar erack Kaydeden (comit) Thorsten Behrens

impress212: #i81610# fixed animation export

# User sj <sj@openoffice.org>

 * found as LGPLv3-only fix at svn rev 1167620 (http://svn.apache.org/viewvc?view=revision&revision=1167620)
üst 2663cd34
...@@ -835,19 +835,17 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r ...@@ -835,19 +835,17 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
aMap.SetScaleY( aFrac ); aMap.SetScaleY( aFrac );
Size aOldSize = aBitmap.GetSizePixel(); Size aOldSize = aBitmap.GetSizePixel();
aBitmap.SetPrefMapMode( aMap ); aGraphic = rGraphic;
aBitmap.SetPrefSize( Size( aOldSize.Width() * 100, aGraphic.SetPrefMapMode( aMap );
aGraphic.SetPrefSize( Size( aOldSize.Width() * 100,
aOldSize.Height() * 100 ) ); aOldSize.Height() * 100 ) );
aGraphic = Graphic( aBitmap );
} }
// Groesse wird eingestellt // Groesse wird eingestellt
else if( nMode == 2 ) else if( nMode == 2 )
{ {
BitmapEx aBitmapEx( rGraphic.GetBitmapEx() ); aGraphic = rGraphic;
aBitmapEx.SetPrefMapMode( MapMode( MAP_100TH_MM ) ); aGraphic.SetPrefMapMode( MapMode( MAP_100TH_MM ) );
aBitmapEx.SetPrefSize( Size( nLogicalWidth, nLogicalHeight ) ); aGraphic.SetPrefSize( Size( nLogicalWidth, nLogicalHeight ) );
aGraphic = Graphic( aBitmapEx );
} }
else else
aGraphic = rGraphic; aGraphic = rGraphic;
......
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