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
ca436d4d
Kaydet (Commit)
ca436d4d
authored
Eyl 01, 2014
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i125519 check GraphicObject existance before accessing it
üst
252a2382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
grfmgr2.cxx
svtools/source/graphic/grfmgr2.cxx
+27
-2
No files found.
svtools/source/graphic/grfmgr2.cxx
Dosyayı görüntüle @
ca436d4d
...
...
@@ -358,8 +358,33 @@ void GraphicManager::ImplCheckSizeOfSwappedInGraphics()
// do not swap out when we have less than 16KB data objects
if
(
nSizeBytes
>=
(
16
*
1024
))
{
pObj
->
FireSwapOutRequest
();
nUsedSize
=
(
nSizeBytes
<
nUsedSize
)
?
nUsedSize
-
nSizeBytes
:
0
;
// #125519# need to check if GraphicObject is still alive
GraphicObject
*
pObj2
=
0
;
bool
bExists
(
false
);
for
(
pObj2
=
(
GraphicObject
*
)
maObjList
.
First
();
!
bExists
&&
pObj2
;
pObj2
=
(
GraphicObject
*
)
maObjList
.
Next
())
{
if
(
pObj2
&&
pObj2
==
pObj
)
{
bExists
=
true
;
}
}
if
(
bExists
)
{
// #125519# okay, swap it out
pObj
->
FireSwapOutRequest
();
nUsedSize
=
(
nSizeBytes
<
nUsedSize
)
?
nUsedSize
-
nSizeBytes
:
0
;
}
else
{
// #125519# error: object was deleted while still a member in aCandidates. This means that
// an earlier call to pObj->FireSwapOutRequest() on an other GraphicObject has as
// a side effect *deleted* and thus removed another GraphicObject from the local
// list (maObjList). This must of course be avoided.
// To check without need to run in debugger, optionally temporarily reactivate the beep below
// Sound::Beep();
}
}
}
}
...
...
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