[Libreoffice-commits] core.git: editeng/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 8 09:19:38 UTC 2019
editeng/source/editeng/editview.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 63889d3d465e9b4292dd5bb630bd3394494c8a6d
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Thu Aug 8 08:30:40 2019 +0200
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Thu Aug 8 11:18:47 2019 +0200
tdf#126751 Fix crash when inserting hyperlink into empty textbox
Change-Id: Ie1a847d72ea65073100466a759add130fbe16f55
Reviewed-on: https://gerrit.libreoffice.org/77139
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 53b6820a0cdf..250f77ffc68a 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -1242,7 +1242,7 @@ const SvxFieldData* EditView::GetFieldAtCursor()
{
// Cursor probably behind the field - extend selection to select the field
ESelection aSel = GetSelection();
- if (aSel.nStartPos == aSel.nEndPos)
+ if (aSel.nStartPos > 0 && aSel.nStartPos == aSel.nEndPos)
{
aSel.nStartPos--;
SetSelection(aSel);
More information about the Libreoffice-commits
mailing list