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

source/contacteditor/frmContactEditorWebsites.cpp

index d752438..d46744a 100644 (file)
@@ -189,7 +189,8 @@ void frmContactEditorWebsites::SetEditorMode(bool EditMode, SectionType SectType
                
                intiter = WebsiteListPrefPtr->find(WebsiteListIndex);
                
-               if (intiter->first == WebsiteListIndex && intiter->second > 0){
+               if (intiter->first == WebsiteListIndex && intiter->second > 0 &&
+                       intiter != WebsiteListPrefPtr->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