Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added SOURCE to ConvertToV3
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 20 Jan 2016 23:21:56 +0000 (23:21 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 20 Jan 2016 23:21:56 +0000 (23:21 +0000)
source/vcard/vcard34conv-v3conv.cpp

index c36d3cb..9703e55 100644 (file)
@@ -1747,7 +1747,25 @@ bool vCard34Conv::ConvertToV3(wxString Filename, wxString *wxSData){
                         
                                ContactDatav3.AddRaw(wxT("X-VCARD4-XML;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
 
-                       }       
+                       }
+               
+               } else if (wxSProperty.Mid(0, 6) == wxT("SOURCE"))[
+               
+                       // Process the source links.
+                       
+                       int intPrevValue = 8;
+                       
+                       intPrevValue = 6;
+                       
+                       if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
+                        
+                               ContactDatav3.AddRaw(wxT("X-VCARD4-SOURCE"), wxSPropertySeg2);
+
+                       } else {
+                        
+                               ContactDatav3.AddRaw(wxT("X-VCARD4-SOURCE;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
+
+                       }
                
                }
                
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