Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fixed crash in frmContactEditorOrganisations in Edit mode.
[xestiaab/.git] / source / contacteditor / frmContactEditorOrganisations.cpp
index b6c2e19..9aa5f50 100644 (file)
@@ -239,7 +239,8 @@ void frmContactEditorOrganisations::SetEditorMode(bool EditMode, SectionType Sec
                
                striter = OrganisationListSortAsPtr->find(OrganisationListIndex);
                 
-               if (striter->first == OrganisationListIndex){
+               if (striter->first == OrganisationListIndex && 
+                 striter != OrganisationListSortAsPtr->end()){
                
                        strValue = striter->second;
                
@@ -251,7 +252,8 @@ void frmContactEditorOrganisations::SetEditorMode(bool EditMode, SectionType Sec
                
                intiter = OrganisationListPrefPtr->find(OrganisationListIndex);         
                
-               if (intiter->first == OrganisationListIndex && intiter->second > 0){
+               if (intiter->first == OrganisationListIndex && intiter->second > 0 &&
+                 striter != OrganisationListPrefPtr->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