From: Steve Brokenshire Date: Sun, 10 Jan 2016 23:27:15 +0000 (+0000) Subject: Added check for address list geographic and language for frmContactEdiotrAddress X-Git-Tag: release-0.09~58 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c6ccf99af72092905b595cbd53613f8c06849a35;p=xestiaab%2F.git Added check for address list geographic and language for frmContactEdiotrAddress --- diff --git a/source/contacteditor/frmContactEditorAddress.cpp b/source/contacteditor/frmContactEditorAddress.cpp index 30c648b..bc1b44c 100644 --- a/source/contacteditor/frmContactEditorAddress.cpp +++ b/source/contacteditor/frmContactEditorAddress.cpp @@ -461,17 +461,17 @@ void frmContactEditorAddress::SetEditorMode( bool EditMode, SectionType SectType striter = AddressListLangPtr->find(AddressListIndex); - if (striter->first == AddressListIndex){ + if (striter->first == AddressListIndex && striter != AddressListLangPtr->end()){ strValue = striter->second; - + } cmbLanguage->SetValue(strValue); striter = AddressListGeoPtr->find(AddressListIndex); - if (striter->first == AddressListIndex){ + if (striter->first == AddressListIndex && striter != AddressListGeoPtr->end()){ strValue = striter->second;