summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/autoredactdialog.cxx2
1 files changed, 1 insertions, 1 deletions
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<std::string>("sName").c_str());
RedactionTargetType eType
- = static_cast<RedactionTargetType>(atoi(rValue.second.get<std::string>("sName").c_str()));
+ = static_cast<RedactionTargetType>(atoi(rValue.second.get<std::string>("eType").c_str()));
OUString sContent = OUString::fromUtf8(rValue.second.get<std::string>("sContent").c_str());
bool bCaseSensitive
= OUString::fromUtf8(rValue.second.get<std::string>("bCaseSensitive").c_str()).toBoolean();