Added some assertions

This commit is contained in:
Twan van Laarhoven
2020-05-11 00:31:42 +02:00
parent d90b73101b
commit 62a0aea3b8
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -134,6 +134,7 @@ void AlphaMask::convexHull(vector<wxPoint>& points) const {
Image AlphaMask::colorImage(const Color& color) const {
Image image(size.x, size.y);
assert(image.Ok());
fill_image(image, color);
setAlpha(image);
return image;