diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-01 01:08:49 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-11-07 10:45:16 +0100 |
commit | 398b3092d1545163e2013ed40d4d7fbe03f71907 (patch) | |
tree | a8260af3d8870d2bb4025df93fcb716316758098 /svtools | |
parent | 4c9aa743fc83b3f3c5b35eeff79c1ffdae90c1fa (diff) |
Why to have this compromise, do that what we say the users we do.
Change-Id: Ia599644ff1f7591ac84bdca988883eaf5860297e
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index 63a3b9d7183e..5abdd9e812e2 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -441,25 +441,13 @@ void GraphicObject::SetSwapStreamHdl() } } -// #i122985# it is not correct to set the swap-timeout to a hard-coded 5000ms -// as it was before. Added code and experimented what to do as a good -// compromise, see description. static sal_uInt32 GetCacheTimeInMs() { const sal_uInt32 nSeconds = officecfg::Office::Common::Cache::GraphicManager::ObjectReleaseTime::get( comphelper::getProcessComponentContext()); - - // The default is 10 minutes. The minimum is one minute, thus 60 - // seconds. When the minimum should match to the former hard-coded - // 5 seconds, we have a divisor of 12 to use. For the default of 10 - // minutes this would mean 50 seconds. Compared to before this is - // ten times more (would allow better navigation by switching - // through pages) and is controllable by the user by setting the - // tools/options/memory/Remove_from_memory_after setting. Seems to - // be a good compromise to me. - return nSeconds * 1000 / 12; + return nSeconds * 1000; } void GraphicObject::SetSwapStreamHdl(const Link& rHdl) |