Fix asserts in Palette::makeGradient()

This commit is contained in:
David Capello 2015-08-11 12:43:29 -03:00
parent 8a3434586e
commit 0ec21a461a

View File

@ -155,8 +155,8 @@ void Palette::makeGradient(int from, int to)
int r2, g2, b2, a2;
int i, n;
ASSERT(from >= 0 && from <= 255);
ASSERT(to >= 0 && to <= 255);
ASSERT(from >= 0 && from < size());
ASSERT(to >= 0 && to < size());
if (from > to)
std::swap(from, to);