From: Steve Brokenshire Date: Sun, 10 Jan 2016 22:44:30 +0000 (+0000) Subject: Added check for Address List Label map pointer. X-Git-Tag: release-0.09~59 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=49daaa0014c2af71cec36ba1cd643255726727f4;p=xestiaab%2F.git Added check for Address List Label map pointer. --- diff --git a/source/contacteditor/frmContactEditorAddress.cpp b/source/contacteditor/frmContactEditorAddress.cpp index b20adeb..30c648b 100644 --- a/source/contacteditor/frmContactEditorAddress.cpp +++ b/source/contacteditor/frmContactEditorAddress.cpp @@ -445,9 +445,13 @@ void frmContactEditorAddress::SetEditorMode( bool EditMode, SectionType SectType striter = AddressListLabelPtr->find(AddressListIndex); - if (striter->first == AddressListIndex){ + if (striter->first == AddressListIndex && striter != AddressListLabelPtr->end()){ strValue = striter->second; + if (strValue.Left(1) == "\"" && strValue.Right(1) == "\""){ + strValue.erase(0, 1); + strValue.RemoveLast(); + } }