Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Skip processing BDAY and ANNIVERSARY if there is data for them.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 17:31:39 +0000 (17:31 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 17:31:39 +0000 (17:31 +0000)
source/contacteditor/frmContactEditor-Load.cpp

index 90fff1c..57ebb01 100644 (file)
@@ -1541,6 +1541,10 @@ void frmContactEditor::LoadKind(ContactKindType *KindType){
 
 void frmContactEditor::LoadBirthday(wxString *BirthdayData, bool *BirthdayText){
 
+       if (BirthdayData->IsEmpty()){
+           return;
+       }
+  
        if (*BirthdayText == FALSE){
        
                int DateYear = 0;
@@ -1576,6 +1580,10 @@ void frmContactEditor::LoadBirthday(wxString *BirthdayData, bool *BirthdayText){
 
 void frmContactEditor::LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText){
 
+       if (AnniversaryData->IsEmpty()){
+           return;
+       }
+  
        if (*AnniversaryText == FALSE){
        
                int DateYear = 0;
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