summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-31 21:18:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-01 09:52:15 +0100
commitf16f35d40948bd4bbe835e0ba3c2f75aa0de23f7 (patch)
tree15dbe7f0230322bdaeb9e23cc36d30a7d0db7777 /sfx2
parent1e3cc6d8dfe95f9f4c37f583c3de582464159698 (diff)
Related: tdf#145464 pass an explicit DocFrame for SID_SIGNATURE
Change-Id: I352e0d92720cd002cbe3f25d4fa0c07b69c88cf2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124535 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 6f7e3fc829b5..67de2f96a547 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1512,14 +1512,14 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet)
IMPL_LINK_NOARG(SfxObjectShell, SignDocumentHandler, weld::Button&, void)
{
- SfxViewFrame *pFrame = SfxViewFrame::GetFirst(this);
- if (!pFrame)
+ SfxViewFrame* pViewFrm = SfxViewFrame::GetFirst(this);
+ if (!pViewFrm)
{
SAL_WARN("sfx.appl", "There should be some SfxViewFrame associated here");
return;
}
- pFrame->MakeActive_Impl(false);
- GetDispatcher()->Execute(SID_SIGNATURE);
+ SfxUnoFrameItem aDocFrame(SID_FILLFRAME, pViewFrm->GetFrame().GetFrameInterface());
+ pViewFrm->GetDispatcher()->ExecuteList(SID_SIGNATURE, SfxCallMode::SLOT, {}, { &aDocFrame });
}
void SfxObjectShell::ExecProps_Impl(SfxRequest &rReq)