justinmeiners / classic-colors

Paint program for Unix. Inspired by MS Paint (Windows 95-98).
GNU General Public License v2.0
46 stars 3 forks source link

Filling a non-canvas area crashes classic-colors #40

Closed MagnetarRocket closed 11 months ago

MagnetarRocket commented 11 months ago

I found a easy way to make classic-colors go kablooie, just use the bucket tool set to "neighbor" (the default i think) and click on a non-canvas area, returns with the error of:

Assertion failed: (sx >= 0 && sy >= 0 && sx <= W && sy <= H), function cc_bitmap_flood_fill, file bitmap.c, line 540.

I think there should be a simple routine if said part fails, action from said routine is simply nothing and let the program continue running i think.