sfx2/source/doc/objserv.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit f16f35d40948bd4bbe835e0ba3c2f75aa0de23f7 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Oct 31 21:18:30 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Nov 1 09:52:15 2021 +0100 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 <caol...@redhat.com> 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)