Added constructor for wxColourRefData, else CloneRefData did a binary

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
This commit is contained in:
Julian Smart 2002-03-12 12:45:52 +00:00
parent 21689736a7
commit d5cf34f4dc

View 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()
{