svx/source/svdraw/svdmrkv.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 663d61986cb529644fbc2385638e95b77b41d245 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Mar 11 19:19:01 2024 +0530 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Mar 11 20:42:20 2024 +0100 LOK: don't send empty callback for LOK LOK_CALLBACK_SHAPE_INNER_TEXT Change-Id: Id0a3a84fcadc1ab216b856760fd168b23bed2827 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164660 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 477fb573d722..38e13d8e3857 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -817,8 +817,9 @@ void SdrMarkView::SetInnerTextAreaForLOKit() const if (!comphelper::LibreOfficeKit::isActive()) return; SfxViewShell* pViewShell = GetSfxViewShell(); - if (pViewShell) - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_SHAPE_INNER_TEXT, CreateInnerTextRectString()); + OString sRectString = CreateInnerTextRectString(); + if (pViewShell && !sRectString.isEmpty()) + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_SHAPE_INNER_TEXT, sRectString); } void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const SfxViewShell* pOtherShell)