mirror of https://github.com/GNOME/gimp.git
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).
This commit is contained in:
parent
271fae5fc2
commit
a8634b2920
|
@ -1,3 +1,11 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue