diff options
Diffstat (limited to 'cui/source/options/optmemory.cxx')
-rw-r--r-- | cui/source/options/optmemory.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/options/optmemory.cxx b/cui/source/options/optmemory.cxx index 9e8976d500dc..97107b2d5b58 100644 --- a/cui/source/options/optmemory.cxx +++ b/cui/source/options/optmemory.cxx @@ -180,13 +180,11 @@ sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet ) officecfg::Office::Common::Cache::GraphicManager::ObjectReleaseTime::set( objectReleaseTime, batch); - // create a dummy graphic object to get access to the common GraphicManager - GraphicObject aDummyObject; - GraphicManager& rGrfMgr = aDummyObject.GetGraphicManager(); + GraphicManager* pGrfMgr = GraphicManager::GetGlobalManager(); - rGrfMgr.SetMaxCacheSize(totalCacheSize); - rGrfMgr.SetMaxObjCacheSize(objectCacheSize, true); - rGrfMgr.SetCacheTimeout(objectReleaseTime); + pGrfMgr->SetMaxCacheSize(totalCacheSize); + pGrfMgr->SetMaxObjCacheSize(objectCacheSize, true); + pGrfMgr->SetCacheTimeout(objectReleaseTime); // OLECache officecfg::Office::Common::Cache::Writer::OLE_Objects::set( |