From 8a7613be85eeb05f132725de23ccba18d5096eee Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Fri, 19 Apr 2024 10:23:15 +0900 Subject: [PATCH] improve 2 --- Dictionary.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dictionary.cpp b/Dictionary.cpp index cd2c6bc..10a8f27 100644 --- a/Dictionary.cpp +++ b/Dictionary.cpp @@ -638,7 +638,10 @@ BOOL XgUpdateDictionaryUsingClues(HWND hwnd, const XGStringW& dict_name) auto it = word_to_hint_map.find(strNormalized); if (it != word_to_hint_map.end()) { - fields[1] = it->second; + if (fields.size() >= 2) + fields[1] = it->second; + else + fields.push_back(it->second); word_to_hint_map.erase(it); auto strNew = mstr_join(fields, L"\t"); if (line != strNew) {