diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-23 15:57:47 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-08-24 09:40:40 +0200 |
commit | 2169b1f16356dbebc662b6f60fd176ca2d6c4e52 (patch) | |
tree | 6d17adc4e9d10dafbb1ee29225c6351f2bd1d6c9 | |
parent | 6d6136398afd1581c6292ba8091c3c5186eaf4b1 (diff) |
tdf#117426 don't crash is infobar is disposed in preview view
Change-Id: Iff2dece2ea5f65c5d0896af888e05703ae709c65
Reviewed-on: https://gerrit.libreoffice.org/59520
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 1f14aa27b889..4ae9d094385e 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1046,7 +1046,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) if ( !sMessage.isEmpty() ) { auto pInfoBar = pFrame->AppendInfoBar("signature", sMessage, aInfoBarType); - if (pInfoBar == nullptr) + if (pInfoBar == nullptr || pInfoBar->IsDisposed()) return; VclPtrInstance<PushButton> xBtn(&(pFrame->GetWindow())); xBtn->SetText(SfxResId(STR_SIGNATURE_SHOW)); |