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
722f4e1d
Kaydet (Commit)
722f4e1d
authored
Ara 13, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#104573 - Assertion failed: SolarMutex not locked
Change-Id: I91d95e73a7e0831f6667f440dd43567ac55b0529
üst
36569a87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
vclevent.cxx
vcl/source/app/vclevent.cxx
+9
-3
menu.cxx
vcl/source/window/menu.cxx
+13
-3
No files found.
vcl/source/app/vclevent.cxx
Dosyayı görüntüle @
722f4e1d
...
...
@@ -92,11 +92,17 @@ VclWindowEvent::VclWindowEvent( vcl::Window* pWin, VclEventId n, void* pDat ) :
VclWindowEvent
::~
VclWindowEvent
()
{}
VclMenuEvent
::
VclMenuEvent
(
Menu
*
pM
,
VclEventId
n
,
sal_uInt16
nPos
)
:
VclSimpleEvent
(
n
),
pMenu
(
pM
),
mnPos
(
nPos
)
{}
:
VclSimpleEvent
(
n
),
mnPos
(
nPos
)
{
SolarMutexGuard
aGuard
;
pMenu
=
pM
;
}
VclMenuEvent
::~
VclMenuEvent
()
{}
{
SolarMutexGuard
aGuard
;
pMenu
.
clear
();
}
Menu
*
VclMenuEvent
::
GetMenu
()
const
{
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
722f4e1d
...
...
@@ -1407,6 +1407,7 @@ void Menu::ImplAddDel( ImplMenuDelData& rDel )
SAL_WARN_IF
(
rDel
.
mpMenu
,
"vcl"
,
"Menu::ImplAddDel(): cannot add ImplMenuDelData twice !"
);
if
(
!
rDel
.
mpMenu
)
{
SolarMutexGuard
aGuard
;
rDel
.
mpMenu
=
this
;
rDel
.
mpNext
=
mpFirstDel
;
mpFirstDel
=
&
rDel
;
...
...
@@ -1415,7 +1416,10 @@ void Menu::ImplAddDel( ImplMenuDelData& rDel )
void
Menu
::
ImplRemoveDel
(
ImplMenuDelData
&
rDel
)
{
rDel
.
mpMenu
=
nullptr
;
{
SolarMutexGuard
aGuard
;
rDel
.
mpMenu
=
nullptr
;
}
if
(
mpFirstDel
==
&
rDel
)
{
mpFirstDel
=
rDel
.
mpNext
;
...
...
@@ -2601,7 +2605,10 @@ bool Menu::HandleMenuActivateEvent( Menu *pMenu ) const
{
ImplMenuDelData
aDelData
(
this
);
pMenu
->
pStartedFrom
=
const_cast
<
Menu
*>
(
this
);
{
SolarMutexGuard
aGuard
;
pMenu
->
pStartedFrom
=
const_cast
<
Menu
*>
(
this
);
}
pMenu
->
bInCallback
=
true
;
pMenu
->
Activate
();
...
...
@@ -2617,7 +2624,10 @@ bool Menu::HandleMenuDeActivateEvent( Menu *pMenu ) const
{
ImplMenuDelData
aDelData
(
this
);
pMenu
->
pStartedFrom
=
const_cast
<
Menu
*>
(
this
);
{
SolarMutexGuard
aGuard
;
pMenu
->
pStartedFrom
=
const_cast
<
Menu
*>
(
this
);
}
pMenu
->
bInCallback
=
true
;
pMenu
->
Deactivate
();
if
(
!
aDelData
.
isDeleted
()
)
...
...
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