summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-07-07 17:26:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-14 17:27:59 +0200
commitfe34bb37b58dd35e387a782612898ecc3f19400b (patch)
treeee4528e21cd671ead1b95080b9304e6c7bdc21fe
parent61a171290595fd6033851c1b30239057ffd54c37 (diff)
tdf#108852: Put signature infobar into the right frame
and thus avoid crash when user clicks 'show signatures' button in a window where signature bar shouldn't even be Change-Id: I5eba8d1ddd8c76dd10acedfa03d732df586748de Reviewed-on: https://gerrit.libreoffice.org/39705 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit bc882e977144d60b850288045e3f6aab7cbad6f7) Reviewed-on: https://gerrit.libreoffice.org/39971 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-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 6b5374a694b0..16265c2510d5 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1035,7 +1035,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet)
}
case SID_SIGNATURE:
{
- SfxViewFrame *pFrame = SfxViewFrame::Current();
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst(this);
if ( pFrame )
{
SignatureState eState = GetDocumentSignatureState();