diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 9d4e90e393..1d004de25f 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -133,7 +133,7 @@ bool wxColour::operator == ( const wxColour& col ) const bool wxColour::operator != ( const wxColour& col) const { - return m_refData != col.m_refData; + return !(*this == col); } void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue ) diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 9d4e90e393..1d004de25f 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -133,7 +133,7 @@ bool wxColour::operator == ( const wxColour& col ) const bool wxColour::operator != ( const wxColour& col) const { - return m_refData != col.m_refData; + return !(*this == col); } void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )