diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2025-01-31 11:47:46 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2025-01-31 13:54:36 +0100 |
commit | b0d4b4664a295631ce4d8dee2ceb5cd94ae12edb (patch) | |
tree | 4efc7f64c992e41d02ebefce0d5ef1866ad0f3a5 /vcl/source/window/bufferdevice.cxx | |
parent | 5f81c84e9b5d4bc9eb5ba05aa1aad5eeaa4eb89a (diff) |
tdf#158198 sw: prevent xBookmark.getAnchor().setString("") from deleting
HEADmaster
... the bookmark.
Add a RANGE_IS_BOOKMARK to SwXTextRange and special case setString() so
that it will do a replace, not a delete, to prevent the bookmark from
being deleted.
SwXBookmark::getAnchor() will create such a SwXTextRange.
Bookmarks may be in table cells of course so we need RANGE_IN_CELL to be
a flag now so it can be used with 2 different enum values.
(regression from commit baf8d2c1c16cb3bdc4edad2560f95fea807a034f)
Change-Id: I69169b9a5f6f7525715122b16de009c894246bef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180985
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'vcl/source/window/bufferdevice.cxx')
0 files changed, 0 insertions, 0 deletions