wxColurRefData in x11 did not overwrite CreateRef function, so it should not use AllocExclusive(), use UnRef() instead, just like InitRGBA() function in wxGTK port did
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
07a471df83
commit
fc8d46b34a
@ -172,7 +172,8 @@ wxGDIRefData *wxColour::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
void wxColour::InitRGBA(unsigned char red, unsigned char green, unsigned char blue,
|
||||
unsigned char WXUNUSED(alpha))
|
||||
{
|
||||
AllocExclusive();
|
||||
UnRef();
|
||||
m_refData = new wxColourRefData();
|
||||
|
||||
#if wxUSE_NANOX
|
||||
M_COLDATA->m_color.red = ((unsigned short)red) ;
|
||||
|
Loading…
Reference in New Issue
Block a user