Index: src/ictranslate/ICTranslateDlg.cpp =================================================================== diff -u -re9d0e63fbb826dd00b7c590d2dcda5e5f41b4b14 -rd88dd04e423f5dea23b1678fe9febac78e8e551b --- src/ictranslate/ICTranslateDlg.cpp (.../ICTranslateDlg.cpp) (revision e9d0e63fbb826dd00b7c590d2dcda5e5f41b4b14) +++ src/ictranslate/ICTranslateDlg.cpp (.../ICTranslateDlg.cpp) (revision d88dd04e423f5dea23b1678fe9febac78e8e551b) @@ -386,6 +386,7 @@ UpdateCustomListImages(); } +// updated the custom language list - bFullUpdate means re-reading also language information (default) void CICTranslateDlg::UpdateCustomLanguageList() { // fill the informations about the translation @@ -738,7 +739,7 @@ CString str; m_ctlDstAuthor.GetWindowText(str); const tchar_t* psz = m_ldCustom.GetAuthor(); - if(psz && psz != str) + if(!psz || psz != str) m_ldCustom.SetAuthor(str); } @@ -747,7 +748,7 @@ CString str; m_ctlDstLanguageName.GetWindowText(str); const tchar_t* psz = m_ldCustom.GetLangName(); - if(psz && psz != str) + if(!psz || psz != str) m_ldCustom.SetLangName(str); } @@ -756,7 +757,7 @@ CString str; m_ctlDstHelpFilename.GetWindowText(str); const tchar_t* psz = m_ldCustom.GetHelpName(); - if(psz && psz != str) + if(!psz || psz != str) m_ldCustom.SetHelpName(str); } Index: src/libictranslate/ResourceManager.cpp =================================================================== diff -u -re9d0e63fbb826dd00b7c590d2dcda5e5f41b4b14 -rd88dd04e423f5dea23b1678fe9febac78e8e551b --- src/libictranslate/ResourceManager.cpp (.../ResourceManager.cpp) (revision e9d0e63fbb826dd00b7c590d2dcda5e5f41b4b14) +++ src/libictranslate/ResourceManager.cpp (.../ResourceManager.cpp) (revision d88dd04e423f5dea23b1678fe9febac78e8e551b) @@ -161,7 +161,7 @@ if(!m_pszText || !rReferenceItem.m_pszText) return eResult_Invalid; - if(rReferenceItem.m_uiChecksum != rReferenceItem.m_uiChecksum) + if(m_uiChecksum != rReferenceItem.m_uiChecksum) return eResult_Invalid; // space check