summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-23 15:57:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-23 18:40:41 +0200
commitd4f7fc2a892f50873a1f7ded156c55c797adff34 (patch)
tree58019d18f2000b5a1a036d8734d142ef08f29eac /sfx2
parent76b81269dd8c13a238f99f8a4ee72952c29f847e (diff)
tdf#117426 don't crash is infobar is disposed in preview view
Change-Id: Iff2dece2ea5f65c5d0896af888e05703ae709c65 Reviewed-on: https://gerrit.libreoffice.org/59512 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 22e61ec98aad..1755be26b741 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1079,7 +1079,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));