Issue 102918 - entering text at position of uncollapsed bookmark with length 0 puts first character inside bookmark
Summary: entering text at position of uncollapsed bookmark with length 0 puts first ch...
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.1
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2009-06-18 16:43 UTC by Daniel Benkmann
Modified: 2017-05-20 11:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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
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.
Comment 4 Marcus 2017-05-20 11:24:46 UTC
Reset assigne to the default "".
Comment 5 Marcus 2017-05-20 11:25:54 UTC
Reset assigne to the default "".