diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-23 15:57:47 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-29 10:51:51 +0200 |
commit | 63269e263142e4d04ba14484c42b801e0d2a7c44 (patch) | |
tree | 8c4a2afcdc41fe13d1de5305746fb7120dbbbea2 | |
parent | 940ba554a4b7861bab20ab6e8db6bcf88a93e5a9 (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>
(cherry picked from commit 2169b1f16356dbebc662b6f60fd176ca2d6c4e52)
-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 c7c1de11e2ec..10517e6d2866 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1064,7 +1064,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)); |