From: Steve Brokenshire Date: Thu, 10 Dec 2015 22:36:50 +0000 (+0000) Subject: Improved checking of FN for meeting the base specification of vCard 4.0. X-Git-Tag: release-0.09~241 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=d18234d18666d7afdc563abc098eaba75deb00c7;p=xestiaab%2F.git Improved checking of FN for meeting the base specification of vCard 4.0. --- diff --git a/source/vcard/vcard.cpp b/source/vcard/vcard.cpp index 613e9fe..cb33358 100644 --- a/source/vcard/vcard.cpp +++ b/source/vcard/vcard.cpp @@ -65,8 +65,8 @@ void vCard::Add(wxString SettingName, wxString SettingValue, bool ReplaceMode){ if (SettingName == wxT("END") && SettingValue == wxT("VCARD")){ vCardEnd = TRUE; } - - if (SettingName == wxT("FN")){ + + if (SettingName.Mid(0,2) == wxT("FN")){ vCardFN = TRUE; } @@ -109,7 +109,7 @@ void vCard::AddRaw(wxString SettingName, wxString SettingValue){ vCardEnd = TRUE; } - if (SettingName == wxT("FN")){ + if (SettingName.Mid(0,2) == wxT("FN")){ vCardFN = TRUE; }