Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Improved checking of FN for meeting the base specification of vCard 4.0.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 10 Dec 2015 22:36:50 +0000 (22:36 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 10 Dec 2015 22:36:50 +0000 (22:36 +0000)
source/vcard/vcard.cpp

index 613e9fe..cb33358 100644 (file)
@@ -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;
     }
     
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