From ccb6513baf6eae9af40eecd05a2991bdd3ce3bbf Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Fri, 7 Jul 2017 17:26:27 +0200 Subject: 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/39699 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sfx2/source/doc/objserv.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index e890a04ae430..856a22abf32e 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1008,7 +1008,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) } case SID_SIGNATURE: { - SfxViewFrame *pFrame = SfxViewFrame::Current(); + SfxViewFrame *pFrame = SfxViewFrame::GetFirst(this); if ( pFrame ) { SignatureState eState = GetDocumentSignatureState(); -- cgit v1.2.3