X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorGeoposition.cpp;h=e429db716fbc245f80fe3d89b3f00c53dcea0a66;hb=c139f797277a0cd85fe9f0b6b8244b791e0cf9ab;hp=cfd61bff04a91b40187b3abffb9e66d5f81efc78;hpb=2f018d80d89ae561482844e0058e9f652e1ae148;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorGeoposition.cpp b/source/contacteditor/frmContactEditorGeoposition.cpp index cfd61bf..e429db7 100644 --- a/source/contacteditor/frmContactEditorGeoposition.cpp +++ b/source/contacteditor/frmContactEditorGeoposition.cpp @@ -76,7 +76,8 @@ void frmContactEditorGeoposition::SetEditorMode(bool EditMode, SectionType SectT intiter = GeopositionListPrefPtr->find(GeopositionListIndex); - if (intiter->first == GeopositionListIndex && intiter->second > 0){ + if (intiter->first == GeopositionListIndex && intiter->second > 0 && + intiter != GeopositionListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();