Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Check if std::string version of ProcessSaveDataStrProc has data before processing
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 28 May 2016 07:03:50 +0000 (08:03 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 28 May 2016 07:03:50 +0000 (08:03 +0100)
source/contacteditor/frmContactEditor.cpp

index 22de535..4acb350 100644 (file)
@@ -486,8 +486,16 @@ void frmContactEditor::ProcessSaveDataStrProc( wxString PropName,
     
        strIter = MapData->find(intIterVal);
     
+       if (strIter == MapData->end()){
+               
+               // Ignore this section and return.
+               
+               return;
+               
+       }
+                                                     
        wxString strPropValue;
-    
+
        if (strIter->first == intIterVal){
         
                strPropValue = strIter->second;
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