summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-10-18 15:08:39 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-11-07 10:45:08 +0100
commit17475638138c92162be1c0f34cf1f9cc95c63579 (patch)
tree36ff59050a651514352c4a1b5fbc22ab23d31850 /svx
parentda612badf7897ab41aa99437e5df874934596fd9 (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.cxx8
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()