diff -r 273333700685 -r 4119185b56ca src/colors.cpp --- a/src/colors.cpp Sat Jan 28 13:32:55 2017 +0200 +++ b/src/colors.cpp Sat Jan 28 13:49:09 2017 +0200 @@ -272,7 +272,7 @@ */ bool ColorData::contains(int code) const { - return code >= 0 and code < countof(m_data); + return code >= 0 and code < length(m_data); } /*