Kaydet (Commit) 73a30a30 authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Andras Timar

tdf#94709 - protect TableWindowTitle Command execution.

Change-Id: I202a154e18c1fbffc31abcc7ccd7f500b67a4c13
Reviewed-on: https://gerrit.libreoffice.org/19233Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
(cherry picked from commit f7e8fe2a)
üst 00950765
...@@ -110,7 +110,11 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt ) ...@@ -110,7 +110,11 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt )
{ {
GrabFocus(); GrabFocus();
if ( m_pTabWin ) if ( m_pTabWin )
m_pTabWin->Command( rEvt ); {
// tdf#94709 - protect shutdown code-path.
VclPtr<OTableWindow> xTabWin(m_pTabWin);
xTabWin->Command( rEvt );
}
else else
Control::Command(rEvt); Control::Command(rEvt);
} }
......
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