Skip to content

Commit

Permalink
Fix "User-defined keywords" field not being saved properly (Style Con…
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Aug 15, 2024
1 parent 9e42900 commit 3ae8e33
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions PowerEditor/src/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8490,15 +8490,13 @@ void NppParameters::writeStyle2Element(const Style & style2Write, Style & style2
}


if (!style2Write._keywords.empty())
{
TiXmlNode *teteDeNoeud = element->LastChild();
TiXmlNode *teteDeNoeud = element->LastChild();

if (teteDeNoeud)
teteDeNoeud->SetValue(style2Write._keywords.c_str());
else
element->InsertEndChild(TiXmlText(style2Write._keywords.c_str()));

if (teteDeNoeud)
teteDeNoeud->SetValue(style2Write._keywords.c_str());
else
element->InsertEndChild(TiXmlText(style2Write._keywords.c_str()));
}
}

void NppParameters::insertUserLang2Tree(TiXmlNode *node, UserLangContainer *userLang)
Expand Down

0 comments on commit 3ae8e33

Please sign in to comment.