From fa21f43888305a78c6fdc10d0b3d310b271f76f7 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 19 Jun 2006 03:19:44 +0000 Subject: [PATCH] initialize GdkColor so code which incorrectly accesses it will work as well as it did before git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/colour.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 594b081506..79b2c37f1d 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -25,8 +25,11 @@ class wxColourRefData: public wxObjectRefData public: wxColourRefData(guint16 red, guint16 green, guint16 blue) { + m_color.red = m_red = red; + m_color.green = m_green = green; + m_color.blue = m_blue = blue; m_color.pixel = 0; m_colormap = NULL; -- 2.47.2