From 7b28a48fde4d02802aa37124b2232e32e7fca351 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Fri, 1 Jan 2016 17:31:39 +0000 Subject: [PATCH] Skip processing BDAY and ANNIVERSARY if there is data for them. --- source/contacteditor/frmContactEditor-Load.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.2