After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170973 - crashes when changing to indexed mode with palette containing no colours
crashes when changing to indexed mode with palette containing no colours
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.2.x
Other All
: High minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-20 10:05 UTC by Karol Krasowski
Modified: 2008-01-15 12:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Karol Krasowski 2005-03-20 10:05:50 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:
Comment 1 weskaggs 2005-03-20 20:04:44 UTC
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.

Comment 2 Sven Neumann 2005-03-21 10:33:50 UTC
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.