X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorCalAdr.cpp;h=29da66e99d4347c7d2715ac81f47136832cafaee;hb=96a36fb1c4c7e04b5bf17cf07f63f2792d23f067;hp=f6908111cd0fbca103c7439ed7d5599597b2d7d1;hpb=da64d37d0a13895554e4ad945c46dd0af6d1c0e6;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorCalAdr.cpp b/source/contacteditor/frmContactEditorCalAdr.cpp index f690811..29da66e 100644 --- a/source/contacteditor/frmContactEditorCalAdr.cpp +++ b/source/contacteditor/frmContactEditorCalAdr.cpp @@ -213,7 +213,8 @@ void frmContactEditorCalAdr::SetEditorMode(bool EditMode) striter = CalAdrListTypePtr->find(CalAdrListIndex); - if (striter->first == CalAdrListIndex){ + if (striter->first == CalAdrListIndex && + striter != CalAdrListTypePtr->end()){ strValue = striter->second; @@ -237,7 +238,8 @@ void frmContactEditorCalAdr::SetEditorMode(bool EditMode) intiter = CalAdrListPrefPtr->find(CalAdrListIndex); - if (intiter->first == CalAdrListIndex && intiter->second > 0){ + if (intiter->first == CalAdrListIndex && intiter->second > 0 && + intiter != CalAdrListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();