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

source/contacteditor/frmContactEditorLanguages.cpp

index d13d804..0cd628c 100644 (file)
@@ -74,7 +74,8 @@ void frmContactEditorLanguages::SetEditorMode(bool EditMode, SectionType SectTyp
                
                intiter = LanguageListPrefPtr->find(LanguageListIndex);
                
-               if (intiter->first == LanguageListIndex && intiter->second > 0){
+               if (intiter->first == LanguageListIndex && intiter->second > 0 &&
+                       intiter != LanguageListPrefPtr->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