From d56b08596b6f0c87420c147db08ba9b2b788042c Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Sun, 14 Jul 2019 23:51:44 +0300 Subject: [PATCH] Fix error in JSONtoRedactionTarget Change-Id: I6e82f86adfc6e1ebff2d9377dd011d0d97648848 Reviewed-on: https://gerrit.libreoffice.org/75602 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- sfx2/source/doc/autoredactdialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();