SwCursor::SelectWordWT: include comment anchor character of a commented word

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 19 September 2014 05:14 UTC

In case the user double-clicks on a word and exactly that word is commented, then we used to select only the word, but not its comment anchor character. So when the user deleted the selection, the comment left there.

It is still possible to manually select only the word, but on double-click let's just select the comment anchor as well, so a simple double-click on the commented word will remove the comment as well.

354ad43 SwCursor::SelectWordWT: include comment anchor character of a commented word
sw/inc/IDocumentMarkAccess.hxx | 1 +
sw/qa/extras/uiwriter/data/commented-word.odt | Bin 0 -> 9953 bytes
sw/qa/extras/uiwriter/uiwriter.cxx | 19 +++++++++++++++++++
sw/source/core/crsr/swcrsr.cxx | 12 ++++++++++++
sw/source/core/doc/docbm.cxx | 12 ++++++++++++
sw/source/core/inc/MarkManager.hxx | 1 +
6 files changed, 45 insertions(+)

Upstream: cgit.freedesktop.org


  • Share