summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/trvlfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/trvlfrm.cxx')
-rw-r--r--sw/source/core/layout/trvlfrm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 6fc290f235b4..5e0bd5b84919 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -41,6 +41,7 @@
#include <viewsh.hxx>
#include <viewopt.hxx>
#include <doc.hxx>
+#include <DocumentSettingManager.hxx>
#include <viscrs.hxx>
#include <frmfmt.hxx>
#include <swtable.hxx>
@@ -1645,7 +1646,7 @@ bool SwFrm::IsProtected() const
if (this->IsCntntFrm() && ((SwCntntFrm*)this)->GetNode())
{
const SwDoc *pDoc=((SwCntntFrm*)this)->GetNode()->GetDoc();
- bool isFormProtected=pDoc->get(IDocumentSettingAccess::PROTECT_FORM );
+ bool isFormProtected=pDoc->GetDocumentSettingManager().get(IDocumentSettingAccess::PROTECT_FORM );
if (isFormProtected)
{
return false; // TODO a hack for now, well deal with it later, I we return true here we have a "double" locking