diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2019-07-14 23:51:44 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2019-07-15 01:10:33 +0200 |
commit | d56b08596b6f0c87420c147db08ba9b2b788042c (patch) | |
tree | 6e24970973e8ead4d81c6447b84870adbd2dd21e /sfx2/source/doc/autoredactdialog.cxx | |
parent | 6604b66be099136c6de3580c5a0a6db2521eba66 (diff) |
Fix error in JSONtoRedactionTarget
Change-Id: I6e82f86adfc6e1ebff2d9377dd011d0d97648848
Reviewed-on: https://gerrit.libreoffice.org/75602
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'sfx2/source/doc/autoredactdialog.cxx')
-rw-r--r-- | sfx2/source/doc/autoredactdialog.cxx | 2 |
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(); |