GUIの追加文字列を後ろから探すようにした

This commit is contained in:
lltcggie 2015-12-27 07:24:18 +09:00
parent 3e72ce6f47
commit f24f61d3fd

View File

@ -615,7 +615,7 @@ private:
if (stem.length() > 0 && stem.length() >= autoSetAddName.length()) if (stem.length() > 0 && stem.length() >= autoSetAddName.length())
{ {
const auto pos = stem.find(autoSetAddName); const auto pos = stem.rfind(autoSetAddName);
if (pos != tstring::npos) if (pos != tstring::npos)
{ {
const tstring addstr(AddName()); const tstring addstr(AddName());