Kaydet (Commit) b361413e authored tarafından Caolán McNamara's avatar Caolán McNamara

wrong pointer check

since...

commit 2636ab88
Date:   Mon Sep 15 20:13:54 2014 +0200

    vcl menu: Rename CloseStartedFrom() to ClosePopup() + adapt code.

Change-Id: Ie30f6d907907551e23e592b8502107e75c333f2e
Reviewed-on: https://gerrit.libreoffice.org/61997
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9f46a103
...@@ -2701,7 +2701,7 @@ void PopupMenu::ClosePopup(Menu* pMenu) ...@@ -2701,7 +2701,7 @@ void PopupMenu::ClosePopup(Menu* pMenu)
{ {
MenuFloatingWindow* p = dynamic_cast<MenuFloatingWindow*>(ImplGetWindow()); MenuFloatingWindow* p = dynamic_cast<MenuFloatingWindow*>(ImplGetWindow());
PopupMenu *pPopup = dynamic_cast<PopupMenu*>(pMenu); PopupMenu *pPopup = dynamic_cast<PopupMenu*>(pMenu);
if (p && pMenu) if (p && pPopup)
p->KillActivePopup(pPopup); p->KillActivePopup(pPopup);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment