Commit a8634b29 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

added missing period in newly added message.

2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c (gimp_image_convert): added missing
	period in newly added message.

	* app/dialogs/convert-dialog.c (convert_dialog_palette_filter): don't
	show empty palettes (bug #170973).
parent 271fae5f
2005-03-21 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-convert.c (gimp_image_convert): added missing
period in newly added message.
* app/dialogs/convert-dialog.c (convert_dialog_palette_filter): don't
show empty palettes (bug #170973).
2005-03-21 Michael Natterer <mitch@gimp.org>
* app/tools/gimpmeasuretool.[ch]: added width and height to the
......
......@@ -798,10 +798,9 @@ gimp_image_convert (GimpImage *gimage,
g_return_if_fail (new_type != gimp_image_base_type (gimage));
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
if (palette_type == GIMP_CUSTOM_PALETTE)
if (! custom_palette || ! custom_palette->n_colors)
if (palette_type == GIMP_CUSTOM_PALETTE && custom_palette->n_colors < 1)
{
g_message (_("Cannot convert image, palette is empty"));
g_message (_("Cannot convert image, palette is empty."));
return;
}
......
......@@ -369,7 +369,9 @@ static gboolean
convert_dialog_palette_filter (const GimpObject *object,
gpointer user_data)
{
return GIMP_PALETTE (object)->n_colors <= 256;
GimpPalette *palette = GIMP_PALETTE (object);
return palette->n_colors > 0 && palette->n_colors <= 256;
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment