X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorCategory.cpp;h=bf2d4ea5aacb3d6e1515560c8db3f8b9a11d9e67;hb=c652fc6a8c7adb87cd00a96548d2f6275842f9f8;hp=eba5dadbab76914ef17aa22e1409e5ec89628ab6;hpb=da64d37d0a13895554e4ad945c46dd0af6d1c0e6;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorCategory.cpp b/source/contacteditor/frmContactEditorCategory.cpp index eba5dad..bf2d4ea 100644 --- a/source/contacteditor/frmContactEditorCategory.cpp +++ b/source/contacteditor/frmContactEditorCategory.cpp @@ -213,7 +213,8 @@ void frmContactEditorCategory::SetEditorMode(bool EditMode) striter = CategoryListTypePtr->find(CategoryListIndex); - if (striter->first == CategoryListIndex){ + if (striter->first == CategoryListIndex && + striter != CategoryListTypePtr->end()){ strValue = striter->second; @@ -237,7 +238,8 @@ void frmContactEditorCategory::SetEditorMode(bool EditMode) intiter = CategoryListPrefPtr->find(CategoryListIndex); - if (intiter->first == CategoryListIndex && intiter->second > 0){ + if (intiter->first == CategoryListIndex && intiter->second > 0 && + intiter != CategoryListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();