GNOME Bugzilla – Bug 170973
crashes when changing to indexed mode with palette containing no colours
Last modified: 2008-01-15 12:50:33 UTC
Steps to reproduce: 1. create new palette with no colours defined 2. create a new image 3. change the image mode to indexed using the palette created in step one Stack trace: Other information:
Fixed in HEAD. Backporting this fix to the 2.2 branch requires either adding a string or refusing to convert without showing any explanation. A possibly better approach might be to refrain from showing empty palettes in the list of available palettes at all. 2005-03-20 Bill Skaggs <weskaggs@primate.ucdavis.edu> * app/core/gimpimage-convert.c: check for non-empty palette before converting to indexed using custom palette, otherwise show warning and abort; fixes bug #170973.
Adding an extra check to the list of palettes being displayed seems to be the easiest and least intrusive approach. 2005-03-21 Sven Neumann <sven@gimp.org> Merged from HEAD branch: * app/dialogs/convert-dialog.c (convert_dialog_palette_filter): don't show empty palettes. Fixes bug #170973.