sw/source/core/crsr/viscrs.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit bc86da350e3b5137a1a3c86b19f5c6c028b67b21 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 Feb 28 17:54:24 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> diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index f81f9750b312..6b8c3c5b71a2 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -524,6 +524,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())