[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sfx2/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Sun Jul 14 23:11:59 UTC 2019


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

New commits:
commit cec6227d34185da9b960f61f8d8189ec1fece264
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Sun Jul 14 23:51:44 2019 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Jul 15 01:10:47 2019 +0200

    Fix error in JSONtoRedactionTarget
    
    Change-Id: I6e82f86adfc6e1ebff2d9377dd011d0d97648848
    Reviewed-on: https://gerrit.libreoffice.org/75603
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx
index b1882f7b5717..b7cd1ce67f56 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();


More information about the Libreoffice-commits mailing list