summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorerack <er@openoffice.org>2011-09-10 22:43:35 +0000
committerThorsten Behrens <tbehrens@suse.com>2011-11-23 23:34:55 +0100
commit9f62089d7228f71fd532dc6ca00f2fd70c976199 (patch)
tree93c44fe21b1596a0f48da1aba85e92ef1aa035c6 /svtools
parent2663cd34e34d4cf7796b328b7679426fb960cc07 (diff)
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)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/filter.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/svtools/source/filter/filter.cxx b/svtools/source/filter/filter.cxx
index a6385a9bb26a..4cdd34d8c862 100644
--- a/svtools/source/filter/filter.cxx
+++ b/svtools/source/filter/filter.cxx
@@ -835,19 +835,17 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
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;