Re: bug in app/gimpdrawable.c

2000-02-01 Thread Sven Neumann
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

Re: bug in app/gimpdrawable.c

2000-02-01 Thread Sven Neumann
The function gimp-drawable-type-with-alpha wasn't completely guarded. Calling it with a non-existent drawable would cause a crash. The fact that you can feed gimp with a bad drawable through the PDB and make it crash, is indeed a bug. I have looked into the code in app/drawable_cmds.c and