diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-10-26 14:36:44 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-10-26 17:56:42 +0100 |
commit | 7988adf2bd250a32885d67306c73e07caa910778 (patch) | |
tree | 1b48ad3c5d3ee87db33d08ccbcac7057662eca77 /sw | |
parent | 0b0d350707fedcf04b43978182b6a8e03d3a4693 (diff) |
lok: Send form field events to the correct view.
Change-Id: I00b40052774602eccd8e4a7d460cedcb36bbd0d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104811
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index fd339f583ee1..f1271c692c21 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -708,7 +708,7 @@ namespace sw::mark void DropDownFieldmark::SendLOKMessage(const OString& sAction) { const SfxViewShell* pViewShell = SfxViewShell::Current(); - if (pViewShell && pViewShell->isLOKMobilePhone()) + if (!pViewShell || pViewShell->isLOKMobilePhone()) { return; } @@ -766,7 +766,7 @@ namespace sw::mark } if (sPayload.toString() != m_sLastSentLOKMsg) { m_sLastSentLOKMsg = sPayload.toString(); - pEditWin->GetView().GetWrtShell().GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_FORM_FIELD_BUTTON, m_sLastSentLOKMsg.getStr()); + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_FORM_FIELD_BUTTON, m_sLastSentLOKMsg.getStr()); } } |