Re: bug in app/gimpdrawable.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The function gimp-drawable-type-with-alpha wasn't
> completely guarded. Calling it with a non-existent
> drawable would cause a crash.
> 
We force a crash in that place (by using a g_assert) since
something has gone wrong. With your patch we would return a 
perfectly valid image_type and gimp would continue, but
a few function calls later it would certainly crash.

I have inserted a few more 
g_return_if_fail (GIMP_IS_DRAWABLE (drawable)) and friends which
should help to locate problems early.


Salut, Sven




[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux