Apache OpenOffice (AOO) Bugzilla – Issue 16896
XDIML: Document looses bookmarks when saved
Last modified: 2013-08-07 14:43:45 UTC
I received the following bugreport via email: When the following document is imported from .doc format, its XML contains bookmarks in the wrong order, i.e. <text:bookmark-end/> followed by <text:bookmark-start/> for the same bookmark ID. When this document is loaded and saved once more, the faulty bookmark elements are removed from the file.
Created attachment 7712 [details] original bugdoc, .doc format
Created attachment 7713 [details] bugdoc, after saving with OOo
dvo: Apparently, there is a problem with exporting range bookmarks over empty ranges.
dvo: Found & Fixed. For the SwTextPortionEnumeration, bookmarks were only sorted according to position, not according to their logical start/end. The result was that start/end for bookmarks on the same position was quasi-random. However, reversed bookmarks were (rightly) discarded by the file import. The fix is to use logical start/end as tie breaker when sorting bookmark positions. Fixed in unoportenum.cxx#339 in CWS sw7pp1b, which should make it into OOo 1.1.1.
dvo->es: Please test. Easiest way to test is to load bugdoc, save as .sxw and then reload. Observe the number of bookmarks before and after.
FIXED
ES: verified in sw7pp1b
Verified with integrated 645m27s1-1_8738 = ok