summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-10-26 14:36:44 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-10-26 16:54:14 +0100
commit5117dc8d657729e36e363c7adc9b60a895509437 (patch)
tree42b82aa1647ceeae8f9b17f04a159bc0bde0a4f8 /sw
parentb495efb724d02300c63305a4fa2097d798b83e00 (diff)
lok: Send form field events to the correct view.
Change-Id: I00b40052774602eccd8e4a7d460cedcb36bbd0d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104812 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index e12cd66dadc1..097e2dea6bd2 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -671,7 +671,7 @@ namespace sw { namespace mark
void DropDownFieldmark::SendLOKMessage(const OString& sAction)
{
const SfxViewShell* pViewShell = SfxViewShell::Current();
- if (pViewShell && pViewShell->isLOKMobilePhone())
+ if (!pViewShell || pViewShell->isLOKMobilePhone())
{
return;
}
@@ -729,7 +729,7 @@ namespace sw { namespace 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());
}
}
}