From: Steve Brokenshire Date: Fri, 1 Jan 2016 17:31:39 +0000 (+0000) Subject: Skip processing BDAY and ANNIVERSARY if there is data for them. X-Git-Tag: release-0.09~100 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=7b28a48fde4d02802aa37124b2232e32e7fca351;p=xestiaab%2F.git Skip processing BDAY and ANNIVERSARY if there is data for them. --- diff --git a/source/contacteditor/frmContactEditor-Load.cpp b/source/contacteditor/frmContactEditor-Load.cpp index 90fff1c..57ebb01 100644 --- a/source/contacteditor/frmContactEditor-Load.cpp +++ b/source/contacteditor/frmContactEditor-Load.cpp @@ -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;