Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
getcontactinfo.cpp: Fix issue with using wxTransparentColour
[xestiaab/.git] / source / common / getcontactinfo.cpp
index 1b4a5e6..a07ec4a 100644 (file)
@@ -32,7 +32,7 @@
 #include "../vcard/vcard34conv.h"
 
 void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID, 
-       wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxString backgroundColour){
+       wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxColour backgroundColour){
 
        // Load the vCard contact data into the wxHTMLWindow given.
 
@@ -554,9 +554,9 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
                
        }
        
-       if (!backgroundColour.IsEmpty()){
+       if (backgroundColour != wxTransparentColour){
                PageData.append("<table CELLPADDING=4 style=\"{background-color: ");
-               PageData.append(backgroundColour);
+               PageData.append(backgroundColour.GetAsString(wxC2S_CSS_SYNTAX));
                PageData.append("; width: 100%;}\"><tr><td>");          
        } else {
                PageData.append("<table CELLPADDING=4 style=\"{width: 100%;}\"><tr><td>");
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