https://bugs.documentfoundation.org/show_bug.cgi?id=96479
Bug ID: 96479 Summary: Bookmark end node is destroyed by inserting text Product: LibreOffice Version: 4.2 all versions Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Writer Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: glo...@fbihome.de Created attachment 121292 --> https://bugs.documentfoundation.org/attachment.cgi?id=121292&action=edit Dokument with bookmark replacement macro The attached document contains the bookmark 'bookmark' and the following macro, which should replaces the bookmark. bm = ThisComponent.bookmarks.getByName("bookmark") range = bm.Anchor cursor = range.getText().createTextCursorByRange(range) range.Text.removeTextContent(bm) newBm = ThisComponent.createInstance("com.sun.star.text.Bookmark") newBm.setName("bookmark1") ' Destroys the bookmark end mark! cursor.getText().insertString(cursor, ".", true) The replacement works, but the insertString actually destroys the bookmark end mark. The saved document misses the broken "bookmark1". The bug was introduced during the 4.2 development by: commit c2b5521921b806ff7b04cdacebde3834d2aafd4b Author: Oliver-Rainer Wittmann <o...@apache.org> Date: Mon Nov 18 11:29:24 2013 +0000 Resolves: #i33737# enable in-place editing of Input Fields This breaks the bookmark based mail merge of our WollMux extension for all newer LO and AOO releases. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs