X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..d65c269b3f665e15a8ae1b8fff063b2ec0ef19a7:/src/gtk/colour.cpp diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 8ee81076b5..47af43accc 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -35,6 +35,13 @@ public: m_hasPixel = FALSE; } + wxColourRefData(const wxColourRefData& data) + { + m_color = data.m_color; + m_colormap = data.m_colormap; + m_hasPixel = data.m_hasPixel; + } + ~wxColourRefData() { FreeColour(); @@ -158,6 +165,7 @@ void wxColour::InitFromName( const wxString &colourName ) else { m_refData = new wxColourRefData(); + if (!gdk_color_parse( colourName.mb_str(), &M_COLDATA->m_color )) { // VZ: asserts are good in general but this one is triggered by