From d18234d18666d7afdc563abc098eaba75deb00c7 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 10 Dec 2015 22:36:50 +0000 Subject: [PATCH] Improved checking of FN for meeting the base specification of vCard 4.0. --- source/vcard/vcard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5