diff options
Diffstat (limited to 'svx/source/sdr/contact/viewobjectcontactofgraphic.cxx')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontactofgraphic.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx index a445b753fc59..c95b42d99a7f 100644 --- a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx @@ -245,8 +245,6 @@ namespace sdr // prepare primitive generation with evtl. loading the graphic when it's swapped out SdrGrafObj& rGrafObj = const_cast< ViewObjectContactOfGraphic* >(this)->getSdrGrafObj(); bool bDoAsynchronGraphicLoading(rGrafObj.GetModel() && rGrafObj.GetModel()->IsSwapGraphics()); - bool bSwapInDone(false); - bool bSwapInExclusive(false); if( bDoAsynchronGraphicLoading && rGrafObj.IsSwappedOut() ) { @@ -262,16 +260,15 @@ namespace sdr || GetObjectContact().isOutputToPDFFile() ) { bDoAsynchronGraphicLoading = false; - bSwapInExclusive = true; } } if( bDoAsynchronGraphicLoading ) { - bSwapInDone = const_cast< ViewObjectContactOfGraphic* >(this)->impPrepareGraphicWithAsynchroniousLoading(); + const_cast< ViewObjectContactOfGraphic* >(this)->impPrepareGraphicWithAsynchroniousLoading(); } else { - bSwapInDone = const_cast< ViewObjectContactOfGraphic* >(this)->impPrepareGraphicWithSynchroniousLoading(); + const_cast< ViewObjectContactOfGraphic* >(this)->impPrepareGraphicWithSynchroniousLoading(); } // get return value by calling parent @@ -294,12 +291,6 @@ namespace sdr } } - // if swap in was forced only for printing metafile and pdf, swap out again - if( bSwapInDone && bSwapInExclusive ) - { - rGrafObj.ForceSwapOut(); - } - return xRetval; } |