Issue 102918

Summary: entering text at position of uncollapsed bookmark with length 0 puts first character inside bookmark
Product: Writer Reporter: Daniel Benkmann <shenmux09>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: issues
Version: OOo 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Daniel Benkmann 2009-06-18 16:43:48 UTC
1) Open a new writer document
2) Enter some text, e.g. "abc"
3) Select the entered text and insert a new bookmark (Insert->Bookmark) on the
text called "A" (the name doesn't really matter)
4) Delete the entered text (e.g. by just pressing Del which will delete the
still selected text). Now the bookmark still exists in the document as an
uncollapsed bookmark with length zero (i.e. a bookmark on a text range with no
content)
5) Make sure the cursor is at the position of the bookmark (which should be the
case if you did everything as described here) and enter some text, e.g. "def"
6) The character "d" is now inside the bookmark.

This behaviour seems illogical. Either the whole text "def" should be inside the
bookmark or completely outside the bookmark. Just putting the first character in
there doesn't make much sense.
Comment 1 eric.savary 2009-06-19 12:34:28 UTC
@b_michaelsen: I'm sure you can make a qualified comment on this! :)
Comment 2 eric.savary 2009-06-19 12:38:01 UTC
Sum up:
- type "abc"
- set a bookmark on it: <bookm>abc</bookm>
- delete the text: <bookm>abc</bookm>
- re-type some text "def" at cursor position
-> you get <bookm>d</bookm>ef
Comment 3 hans_werner67 2011-02-03 12:08:29 UTC
pls. reassign or close issues.
Thx.
Comment 4 Marcus 2017-05-20 11:24:46 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 5 Marcus 2017-05-20 11:25:54 UTC
Reset assigne to the default "issues@openoffice.apache.org".