summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/pam.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2019-01-21 12:32:00 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-01-21 15:27:07 +0100
commita7fd527ece87a1c25fe0d8a9811fe2b230eeea88 (patch)
tree031a5959e067d5e7216581a9bb625059f1e35858 /sw/source/core/crsr/pam.cxx
parent703cae949a826898b2aa9e96703ffbb2ca8c024e (diff)
Revert "tdf#122201 sw: DOCX: allow editing of unprotected areas in protected doc"
Dependent patches were abandoned, this one does not work in isolation. This reverts commit 46c6c414a6df79575517f5df67510d6f4e3d0128. Change-Id: I28edb844242a1e31df0be2e57ad8591055db330c Reviewed-on: https://gerrit.libreoffice.org/66677 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source/core/crsr/pam.cxx')
-rw-r--r--sw/source/core/crsr/pam.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx
index 3eaf288f7b30..4e762bfcf218 100644
--- a/sw/source/core/crsr/pam.cxx
+++ b/sw/source/core/crsr/pam.cxx
@@ -597,16 +597,6 @@ bool SwPaM::HasReadonlySel( bool bFormView ) const
{
bRet = true;
}
- else
- {
- const SwSectionNode* pParentSectionNd = pNd->FindSectionNode();
- if ( pParentSectionNd != nullptr
- && ( pParentSectionNd->GetSection().IsProtectFlag()
- || ( bFormView && !pParentSectionNd->GetSection().IsEditInReadonlyFlag()) ) )
- {
- bRet = true;
- }
- }
}
if ( !bRet
@@ -711,7 +701,7 @@ bool SwPaM::HasReadonlySel( bool bFormView ) const
// touches fields, or fully encloses it), then don't disable editing
bRet = !( ( !pA || bAtStartA ) && ( !pB || bAtStartB ) );
}
- if( !bRet && pDoc->GetDocumentSettingManager().get( DocumentSettingId::PROTECT_FORM ) && (pA || pB) )
+ if( !bRet && pDoc->GetDocumentSettingManager().get( DocumentSettingId::PROTECT_FORM ) )
{
// Form protection case
bRet = ( pA == nullptr ) || ( pB == nullptr ) || bAtStartA || bAtStartB;