X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorLanguages.cpp;h=0cd628c68b9cfef3e02a14d93257c309b5398183;hb=c139f797277a0cd85fe9f0b6b8244b791e0cf9ab;hp=d13d8045b38c32cb50bb3d99073ca1584cce1c37;hpb=da64d37d0a13895554e4ad945c46dd0af6d1c0e6;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorLanguages.cpp b/source/contacteditor/frmContactEditorLanguages.cpp index d13d804..0cd628c 100644 --- a/source/contacteditor/frmContactEditorLanguages.cpp +++ b/source/contacteditor/frmContactEditorLanguages.cpp @@ -74,7 +74,8 @@ void frmContactEditorLanguages::SetEditorMode(bool EditMode, SectionType SectTyp intiter = LanguageListPrefPtr->find(LanguageListIndex); - if (intiter->first == LanguageListIndex && intiter->second > 0){ + if (intiter->first == LanguageListIndex && intiter->second > 0 && + intiter != LanguageListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();