sw/source/core/crsr/crsrsh.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit e879ddeda3d81ec95022142f7d4e514bfec8b123 Author: Martin Nathansen <marsia...@gmail.com> Date: Fri Aug 12 13:04:19 2016 +0200 Resolves: tdf#101245 doc(x) protected areas not protected with disabled cursor Protected areas of imported doc(x) documents are now protected even when the âenable cursorâ option is disabled: It is still possible to set the cursor into the protected area, but the text is not editable anymore. Change-Id: If45dfc82fb7cc70e0a6569a9d735eafcafda9bc2 Reviewed-on: https://gerrit.libreoffice.org/28075 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Oliver Specht <oliver.spe...@cib.de> diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 509f3bf..5b6edb7 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -67,6 +67,7 @@ #include <sfx2/lokhelper.hxx> #include <comphelper/string.hxx> #include <PostItMgr.hxx> +#include <DocumentSettingManager.hxx> using namespace com::sun::star; using namespace util; @@ -3044,7 +3045,9 @@ bool SwCursorShell::HasReadonlySel(bool bAnnotationMode) const { bool bRet = false; // If protected area is to be ignored, then selections are never read-only. - if ((IsReadOnlyAvailable() || GetViewOptions()->IsFormView()) && !GetViewOptions()->IsIgnoreProtectedArea()) + if ((IsReadOnlyAvailable() || GetViewOptions()->IsFormView() || + GetDoc()->GetDocumentSettingManager().get( DocumentSettingId::PROTECT_FORM )) && + !GetViewOptions()->IsIgnoreProtectedArea()) { if ( m_pTableCursor != nullptr ) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits