https://bugs.documentfoundation.org/show_bug.cgi?id=96479

--- Comment #6 from Jan-Marek Glogowski <[email protected]> ---
(In reply to Oliver Specht from comment #5)
> This still seems o.k. to me:
>       cursor.getText().insertString(cursor, ".", true)
> cursor includes the '.'
>       cursor.getText().insertTextContent(cursor, newBm, true)
> newBm includes '.'
>       cursor2 = newBm.Anchor.Text.createTextCursorByRange(newBm.Anchor)
> cursor2 includes newBm
>       cursor2.Text.insertTextContent(cursor2, inputField, true)
> insertTextContent removes the selection - that removes newBm - and then
> inserts the field

If you run this code in LO 4.1, i.e. before the patch, it replaces "bookmark"
with "bookmark1" with the input field as content.

In versions after the patch, the code modifies the document - I assume
correctly, so it still replaces "bookmark" with "bookmark1" (I can see this
change in the navigator), but when saving the document the "bookmark1" is gone.

Now you claim that "bookmark1" is correctly removed, but this is contradicted
by the GUI and previous behavior, as the navigator for the original document,
not the saved and loaded one, shows "bookmark1" in the navigator. The loaded
document misses "bookmark1".

Whatever behavior is correct:
  1. the behavior has changed and
  2. the current state is inconsistent, as the navigator shows a "bookmark1",
which is lost on save 

Hope this helps to understand my point.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to