diff options
Diffstat (limited to 'vcl/source/gdi/impgraph.cxx')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 7f346cf42d3b..a055283a54f5 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -708,22 +708,22 @@ void ImpGraphic::ImplSetPrefSize( const Size& rPrefSize ) case( GRAPHIC_BITMAP ): { + //UUUU used when importing a writer FlyFrame with SVG as graphic, added conversion + // to allow setting the PrefSize at the BitmapEx to hold it + if(maSvgData.get() && maEx.IsEmpty()) + { + // use maEx as local buffer for rendered svg + const_cast< ImpGraphic* >(this)->maEx = maSvgData->getReplacement(); + } + // #108077# Push through pref size to animation object, // will be lost on copy otherwise - if(maSvgData.get()) + if( ImplIsAnimated() ) { - // ignore for Svg. If this is really used (except the grfcache) - // it can be extended by using maEx as buffer for maSvgData->getReplacement() + const_cast< BitmapEx& >(mpAnimation->GetBitmapEx()).SetPrefSize( rPrefSize ); } - else - { - if( ImplIsAnimated() ) - { - const_cast< BitmapEx& >(mpAnimation->GetBitmapEx()).SetPrefSize( rPrefSize ); - } - maEx.SetPrefSize( rPrefSize ); - } + maEx.SetPrefSize( rPrefSize ); } break; |