diff options
author | Mert Tumer <mert.tumer@collabora.com> | 2022-02-25 13:05:28 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2022-03-14 11:53:31 +0100 |
commit | 3a2c156eb8b5e68e9de430e788a57e0c220f7e3a (patch) | |
tree | 425cc5f9477cf69b101631cdddf5911d8ce57176 /sw | |
parent | 7545a53f53c786c1124ba750f9339ffc237d6467 (diff) |
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.tumer@collabora.com>
Change-Id: I4402e04d4a16a1f840499c57421fd01caf43f116
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130525
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131520
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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()) |