Commit 01d0283f authored by Boudewijn Rempt's avatar Boudewijn Rempt

If two colors are not of the same size, they are not equal.

We do not have to assert on that.
parent 23d10f42
......@@ -84,9 +84,12 @@ public:
bool operator==(const KoColor &other) const {
if (*colorSpace() != *other.colorSpace())
if (*colorSpace() != *other.colorSpace()) {
return false;
Q_ASSERT(m_size == other.m_size);
if (m_size != other.m_size) {
return false;
return memcmp(m_data, other.m_data, m_size) == 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment