To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=103669 Issue #|103669 Summary|Calling setString twice on bookmark's text range delet |es adjacent bookmark Component|Word processor Version|OOo 3.1 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|editing Assigned to|writerneedsconfirm Reported by|shenmux09
------- Additional comments from [email protected] Mon Jul 20 15:45:51 +0000 2009 ------- The writer document setStringDeletesBookmark.odt (attached below) contains two bookmarks. One called 'bookmark1' on the text "abc", the other called 'bookmark2' behind "abc". This is how it looks in the content.xml: <text:bookmark-start text:name="bookmark1"/>abc<text:bookmark-end text:name="bookmark1"/><text:bookmark text:name="bookmark2"/> Calling the setString() function twice on bookmark1's text range deletes bookmark2. This can be tested by executing the following macro (also included in the document): Sub Main bookmark1 = ThisComponent.getBookmarks().getByName("bookmark1") range = bookmark1.getAnchor() range.setString("foo") range.setString("bar") 'Now bookmark2 is deleted! End Sub --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
