Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
398b3092
Kaydet (Commit)
398b3092
authored
Kas 01, 2014
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Why to have this compromise, do that what we say the users we do.
Change-Id: Ia599644ff1f7591ac84bdca988883eaf5860297e
üst
4c9aa743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
grfmgr.cxx
svtools/source/graphic/grfmgr.cxx
+1
-13
No files found.
svtools/source/graphic/grfmgr.cxx
Dosyayı görüntüle @
398b3092
...
@@ -441,25 +441,13 @@ void GraphicObject::SetSwapStreamHdl()
...
@@ -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
()
static
sal_uInt32
GetCacheTimeInMs
()
{
{
const
sal_uInt32
nSeconds
=
const
sal_uInt32
nSeconds
=
officecfg
::
Office
::
Common
::
Cache
::
GraphicManager
::
ObjectReleaseTime
::
get
(
officecfg
::
Office
::
Common
::
Cache
::
GraphicManager
::
ObjectReleaseTime
::
get
(
comphelper
::
getProcessComponentContext
());
comphelper
::
getProcessComponentContext
());
return
nSeconds
*
1000
;
// 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
;
}
}
void
GraphicObject
::
SetSwapStreamHdl
(
const
Link
&
rHdl
)
void
GraphicObject
::
SetSwapStreamHdl
(
const
Link
&
rHdl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment