Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fixed potential crash with frmContactEditorGeoposition in Edit mode.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 9 Feb 2016 23:45:52 +0000 (23:45 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 9 Feb 2016 23:45:52 +0000 (23:45 +0000)
This would be caused because no checks were made on the iterator to see
if it was valid or not.

source/contacteditor/frmContactEditorGeoposition.cpp

index cfd61bf..e429db7 100644 (file)
@@ -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();
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy