X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorVendor.cpp;h=ce566483524d31a618a8e8753ceb5594ae75049a;hb=3b1da98385debe24001f0432f8d6f674f2710c31;hp=4696a9ddf15af017aec890313f1168170de83c76;hpb=b813f99bbcbdf103f82ece0935419a784f0f51e9;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorVendor.cpp b/source/contacteditor/frmContactEditorVendor.cpp index 4696a9d..ce56648 100644 --- a/source/contacteditor/frmContactEditorVendor.cpp +++ b/source/contacteditor/frmContactEditorVendor.cpp @@ -67,7 +67,8 @@ void frmContactEditorVendor::SetEditorMode(bool EditMode) striter = VendorListElementPtr->find(VendorListIndex); - if (striter->first == VendorListIndex){ + if (striter->first == VendorListIndex && + striter != VendorListElementPtr->end()){ strValue = striter->second; @@ -81,7 +82,8 @@ void frmContactEditorVendor::SetEditorMode(bool EditMode) striter = VendorListPtr->find(VendorListIndex); - if (striter->first == VendorListIndex){ + if (striter->first == VendorListIndex && + striter != VendorListPtr->end()){ strValue = striter->second;