From: Steve Brokenshire Date: Sun, 10 Jan 2016 22:44:14 +0000 (+0000) Subject: Added check for Address List Preferences map pointer. X-Git-Tag: release-0.09~60 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=183fe3ef7931cfae2b38cec8f1ed87980bdc1185;p=xestiaab%2F.git Added check for Address List Preferences map pointer. --- diff --git a/source/contacteditor/frmContactEditorAddress.cpp b/source/contacteditor/frmContactEditorAddress.cpp index f746895..b20adeb 100644 --- a/source/contacteditor/frmContactEditorAddress.cpp +++ b/source/contacteditor/frmContactEditorAddress.cpp @@ -433,7 +433,7 @@ void frmContactEditorAddress::SetEditorMode( bool EditMode, SectionType SectType intiter = AddressListPrefPtr->find(AddressListIndex); - if (intiter->first == AddressListIndex && intiter->second > 0){ + if (intiter->first == AddressListIndex && intiter->second > 0 && intiter != AddressListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();