summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-05-30 07:10:25 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-30 08:42:35 +0000
commit2a5fe37dfc48bfddc4fd4e47c1034fd76d53ba84 (patch)
tree9b32399cedb57360714e3a5d9bed7a774de70327
parentb8c52df3452208b97dcc59d010a33de4be70101b (diff)
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/25651 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/source/uibase/docvw/AnnotationWin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx
index 8c03679510b7..17bc48ebc4b2 100644
--- a/sw/source/uibase/docvw/AnnotationWin.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin.cxx
@@ -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();
}
}