sw/source/core/crsr/viscrs.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 3a2c156eb8b5e68e9de430e788a57e0c220f7e3a Author: Mert Tumer <mert.tu...@collabora.com> AuthorDate: Fri Feb 25 13:05:28 2022 +0300 Commit: Mert Tumer <mert.tu...@collabora.com> CommitDate: Mon Mar 14 11:53:31 2022 +0100 dont send text selection start/end when there is no selection when there is no selection, startrect and endrect get the cursor coordinates, we should not send it. Otherwise this causes selection handles to appear on online Signed-off-by: Mert Tumer <mert.tu...@collabora.com> Change-Id: I4402e04d4a16a1f840499c57421fd01caf43f116 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130525 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131520 Tested-by: Jenkins diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 26e43813575d..0501162a2a16 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -521,6 +521,13 @@ OString SwSelPaintRects::getLOKPayload( int nType, int nViewId, bool* ignore ) c SwRect aEndRect; FillStartEnd(aStartRect, aEndRect); + // no selection rect + if (!size()) + { + *ignore = true; + return OString(); + } + if( nType == LOK_CALLBACK_TEXT_SELECTION_START ) { if (aStartRect.HasArea())