diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx index 54f40fc35abd..9a5e2e5addba 100644 --- a/sfx2/source/doc/autoredactdialog.cxx +++ b/sfx2/source/doc/autoredactdialog.cxx @@ -384,7 +384,7 @@ RedactionTarget* JSONtoRedactionTarget(const boost::property_tree::ptree::value_ { OUString sName = OUString::fromUtf8(rValue.second.get("sName").c_str()); RedactionTargetType eType - = static_cast(atoi(rValue.second.get("sName").c_str())); + = static_cast(atoi(rValue.second.get("eType").c_str())); OUString sContent = OUString::fromUtf8(rValue.second.get("sContent").c_str()); bool bCaseSensitive = OUString::fromUtf8(rValue.second.get("bCaseSensitive").c_str()).toBoolean();