diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-22 15:29:58 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-23 10:25:09 +0200 |
commit | 27892a5e12dada80226f778ab2bd14b1bdaab58a (patch) | |
tree | f0b91370794fc5b883bc79ceb28ecdc891b3d916 /sw/inc/crsrsh.hxx | |
parent | 937c22f242d0c08b0980ce864530966378ada9a9 (diff) |
sw: enable Replace with Protect Bookmarks
The dialog calls Replace on the whole bookmark, and with commit
7974cea6c788e02d7c36573e2d10dcc51884f70e the bookmark is preserved, so
the HasReadonlySel() should not prevent this replace from happening.
Change-Id: I823b042c8327c6716b2ac1a8a86beffd887e6e4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138693
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r-- | sw/inc/crsrsh.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 306acf96f3fc..d552cba2b503 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -477,7 +477,7 @@ public: // Cursor is placed in something that is protected or selection contains // something that is protected. - bool HasReadonlySel() const; + bool HasReadonlySel(bool isReplace = false) const; // Can the cursor be set to read only ranges? bool IsReadOnlyAvailable() const { return m_bSetCursorInReadOnly; } |