sw: fix copying of bookmarks in CopyRange

Desktop / LibreOffice - Michael Stahl [redhat.com] - 2 October 2015 08:26 UTC

If the copied range starts with a not fully selected paragraph, the bookmarks that are copied will be created on the wrong paragraphs, on the node after the correct one.

This also happens when hinding the redlines, and causes asserts from attempting to create CrossRefBookmarks on table nodes on WW8 export of fdo66302-1.odt and fdo66312-1.odt.

c95ba3e sw: fix copying of bookmarks in CopyRange
sw/qa/extras/uiwriter/uiwriter.cxx | 57 ++++++++++++++++++++
.../core/doc/DocumentContentOperationsManager.cxx | 43 ++++++++++++---
.../core/inc/DocumentContentOperationsManager.hxx | 2 +-
3 files changed, 94 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share