diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 7acc5b7..4f16239 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -615,7 +615,7 @@ private: if (stem.length() > 0 && stem.length() >= autoSetAddName.length()) { - const auto pos = stem.find(autoSetAddName); + const auto pos = stem.rfind(autoSetAddName); if (pos != tstring::npos) { const tstring addstr(AddName());