Kaydet (Commit) 12868914 authored tarafından Justin Luth's avatar Justin Luth

tdf#99870 writer: don't delete selection with delete-comment

When using the keyboard to select text and then deleting a comment,
all the text between the cursor and the comment would also be deleted.
(Not necessarily the selected text, but everything
from the point or the mark would be included in the delete.)

Change-Id: Id15a00d112d118227bc4a34b5102bb09d8d167b0
Reviewed-on: https://gerrit.libreoffice.org/25216Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst e71ab23a
......@@ -158,6 +158,7 @@ void SwAnnotationWin::Delete()
SwSidebarWin::Delete();
// we delete the field directly, the Mgr cleans up the PostIt by listening
GrabFocusToDocument();
DocView().GetWrtShellPtr()->ClearMark();
DocView().GetWrtShellPtr()->DelRight();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment