X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorEmail.cpp;h=407b63b54f174d4d63c18145d94436f01fa8fe73;hb=296baaf67d5aef9ed8e57f9de85a3d16ea86d767;hp=2830a651f85a99e23976f0692b716769b0220c5d;hpb=c652fc6a8c7adb87cd00a96548d2f6275842f9f8;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorEmail.cpp b/source/contacteditor/frmContactEditorEmail.cpp index 2830a65..407b63b 100644 --- a/source/contacteditor/frmContactEditorEmail.cpp +++ b/source/contacteditor/frmContactEditorEmail.cpp @@ -188,13 +188,14 @@ void frmContactEditorEmail::SetEditorMode(bool EditMode, SectionType SectType) intiter = EmailListPrefPtr->find(EmailListIndex); - if (intiter->first == EmailListIndex && intiter->second > 0){ + if (intiter->first == EmailListIndex && intiter->second > 0 && + intiter != EmailListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable(); chkUsePref->SetValue(TRUE); - } + } }