]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/colour.h
added .inited comparison as suggested by John McPherson to avoid comparison wxBlack...
[wxWidgets.git] / include / wx / mac / colour.h
index c290cbefd61c943ca31a652edceabadc9e19fe37..13f24cc716ff51aa97f1753129bff678acac8756 100644 (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);
   }