svx/source/svdraw/svdmrkv.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 93d9d675e0f17fa18b0876d8f73bb9731a06186d 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:37 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/+/164659 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 67f0f6ffa96c..0636dc28ed64 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -822,8 +822,9 @@ void SdrMarkView::SetInnerTextAreaForLOKit() const if (!comphelper::LibreOfficeKit::isActive()) return; SfxViewShell* pViewShell = GetSfxViewShell(); - if (pViewShell) - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_SHAPE_INNER_TEXT, CreateInnerTextRectString().getStr()); + OString sRectString = CreateInnerTextRectString(); + if (pViewShell && !sRectString.isEmpty()) + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_SHAPE_INNER_TEXT, sRectString.getStr()); } void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const SfxViewShell* pOtherShell)