diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-10-18 15:08:39 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-07 10:45:08 +0100 |
commit | 17475638138c92162be1c0f34cf1f9cc95c63579 (patch) | |
tree | 36ff59050a651514352c4a1b5fbc22ab23d31850 /svx | |
parent | da612badf7897ab41aa99437e5df874934596fd9 (diff) |
Make SetSwapState() an internal method
So we can be sure it is always called when user data changed.
Change-Id: If107907afffb85a7a57817f5807847a5c028416c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index ca735430d445..ca34e7e98084 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -552,10 +552,6 @@ void SdrGrafObj::SetGrafStreamURL( const OUString& rGraphicStreamURL ) else if( pModel->IsSwapGraphics() ) { pGraphic->SetUserData( rGraphicStreamURL ); - - // set state of graphic object to 'swapped out' - if( pGraphic->GetType() == GRAPHIC_NONE ) - pGraphic->SetSwapState(); } } @@ -574,7 +570,6 @@ void SdrGrafObj::ForceSwapIn() const Graphic aEmpty; pGraphic->SetGraphic( aEmpty ); pGraphic->SetUserData( aUserData ); - pGraphic->SetSwapState(); const_cast< SdrGrafObj* >( this )->mbIsPreview = false; } @@ -634,9 +629,6 @@ void SdrGrafObj::SetGraphicLink(const OUString& rFileName, const OUString& rRefe aFilterName = rFilterName; ImpLinkAnmeldung(); pGraphic->SetUserData(); - - // A linked graphic is per definition swapped out (has to be loaded) - pGraphic->SetSwapState(); } void SdrGrafObj::ReleaseGraphicLink() |