https://bugs.documentfoundation.org/show_bug.cgi?id=158198
Michael Stahl (allotropia) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|BASIC |Writer CC| |[email protected] | |, [email protected] --- Comment #7 from Michael Stahl (allotropia) <[email protected]> --- thinking the basic problem here is that the API only has this "setString" method, but no way to indicate whether the intent is to *delete* or to *replace* text. these are different operations: deleting means that things like objects anchored in the deletion range and bookmarks should be deleted too, while replacing means that the current text should be deleted but the anchored objects should remain. so the best idea i had is that setString("") would be interpreted as *delete* and any other setString call as *replace*. the behavior when selecting an entire paragraph was changed in commit baf8d2c1c16cb3bdc4edad2560f95fea807a034f because in this situation it was actually quite difficult to get rid of the bookmark if the user does want to delete it, as no selection that is larger than the bookmark is possible inside the paragraph (and there may be no preceding or following paragraph). so i'm going to call the new behavior a feature not a bug, but of course i'm biased... -- You are receiving this mail because: You are the assignee for the bug.
