diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-03-26 15:24:37 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-03-26 16:57:26 +0100 |
commit | 3fc68fdc6f4ef04091db2fd46499a10396c3a4f2 (patch) | |
tree | b5e8c967a0643f4e6ae11715a3386df70d7c9e23 /sw | |
parent | 5a94ac9eec4a63708262b2389aa2a434aa47112e (diff) |
sw: PROTECT_FIELDS should not protect placeholder fields
The text placeholder field becomes totally nonfunctional, the other
placeholder fields allow inserting but are then not deleted; just ignore
protection for placeholder fields.
Change-Id: Ic478a32d616464bfe7f24fc851c1998b5e01a23b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91140
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index f50b87b02bf3..59ed41a036b1 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -789,7 +789,9 @@ bool SwPaM::HasReadonlySel( bool bFormView ) const { break; // after selection } - if (pHint->Which() == RES_TXTATR_FIELD) + if (pHint->Which() == RES_TXTATR_FIELD + // placeholders don't work if you can't delete them + && pHint->GetFormatField().GetField()->GetTyp()->Which() != SwFieldIds::JumpEdit) { return true; } |