sfx2/source/doc/autoredactdialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5e54ef764894fa16e0cd2bea3bc7677ec7ada367
Author:     Muhammet Kara <muhammet.k...@collabora.com>
AuthorDate: Sun Jul 14 23:51:44 2019 +0300
Commit:     Muhammet Kara <muhammet.k...@collabora.com>
CommitDate: Sat Aug 17 16:42:31 2019 +0200

    Fix error in JSONtoRedactionTarget
    
    Change-Id: I6e82f86adfc6e1ebff2d9377dd011d0d97648848
    Reviewed-on: https://gerrit.libreoffice.org/75602
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.k...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/77170
    Tested-by: Muhammet Kara <muhammet.k...@collabora.com>

diff --git a/sfx2/source/doc/autoredactdialog.cxx 
b/sfx2/source/doc/autoredactdialog.cxx
index 692bce0080b9..49f6812861c9 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to