added .inited comparison as suggested by John McPherson to avoid comparison wxBlack to wxNullBitmap being true

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-02-14 09:02:54 +00:00
parent 346d4fcde7
commit 318fa6983d

View File

@@ -68,7 +68,8 @@ public:
// comparison
bool operator == (const wxColour& colour) const
{
return (m_red == colour.m_red &&
return (m_isInit == colour.m_isInit &&
m_red == colour.m_red &&
m_green == colour.m_green &&
m_blue == colour.m_blue);
}