]> git.saurik.com Git - wxWidgets.git/commitdiff
Added constructor for wxColourRefData, else CloneRefData did a binary
authorJulian Smart <julian@anthemion.co.uk>
Tue, 12 Mar 2002 12:45:52 +0000 (12:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 12 Mar 2002 12:45:52 +0000 (12:45 +0000)
copy which caused an assert in AllocExclusive (Add to Custom Colours in
Colour Dialog)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/colour.cpp

index dfe438e1c4d0b76c99aff7ef6420e7655f3bddac..cf8431a8cc19e7dee3d20340a589b9903a6675ed 100644 (file)
@@ -35,6 +35,13 @@ public:
         m_colormap = (WXColormap *) NULL;
         m_hasPixel = FALSE;
     }
+    wxColourRefData(const wxColourRefData& data):
+        wxObjectRefData()
+    {
+        m_color = data.m_color;
+        m_colormap = data.m_colormap;
+        m_hasPixel = data.m_hasPixel;
+    }
     
     ~wxColourRefData()
     {