diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index fb1c9fa57219..3c0dbd3c9016 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -1074,10 +1074,11 @@ OString GraphicCache::GetUniqueID( const GraphicObject& rObj ) const // ensure that the entry is correctly initialized (it has to be read at least once) if( pEntry && pEntry->GetID().IsEmpty() ) + { pEntry->TryToSwapIn(); - - // do another call to ImplGetCacheEntry in case of modified entry list - pEntry = const_cast<GraphicCache*>(this)->ImplGetCacheEntry( rObj ); + // do another call to ImplGetCacheEntry in case of modified entry list + pEntry = const_cast<GraphicCache*>(this)->ImplGetCacheEntry( rObj ); + } if( pEntry ) aRet = pEntry->GetID().GetIDString(); |