mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Fix asserts in Palette::makeGradient()
This commit is contained in:
parent
8a3434586e
commit
0ec21a461a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user