]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize GdkColor so code which incorrectly accesses it will work as well as it...
authorPaul Cornett <paulcor@bullseye.com>
Mon, 19 Jun 2006 03:19:44 +0000 (03:19 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 19 Jun 2006 03:19:44 +0000 (03:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/colour.cpp

index 594b081506409509d3e14c01e2a4a506d193c516..79b2c37f1df2ac2e1cde63d154aeaa37c9502c58 100644 (file)
@@ -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;