corrected comment (bug #346755).

2006-07-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.[ch]: corrected comment (bug #346755).
This commit is contained in:
Sven Neumann 2006-07-06 14:40:03 +00:00 committed by Sven Neumann
parent 12c0d80853
commit e28ba685cf
3 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2006-07-06 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.[ch]: corrected comment (bug #346755).
2006-07-06 Sven Neumann <sven@gimp.org> 2006-07-06 Sven Neumann <sven@gimp.org>
* app/xcf/xcf-save.c (xcf_save_image_props): removed redundant * app/xcf/xcf-save.c (xcf_save_image_props): removed redundant

View file

@ -2327,7 +2327,7 @@ gimp_image_get_new_tattoo (GimpImage *image)
image->tattoo_state++; image->tattoo_state++;
if (image->tattoo_state <= 0) if (G_UNLIKELY (image->tattoo_state == 0))
g_warning ("%s: Tattoo state corrupted (integer overflow).", G_STRFUNC); g_warning ("%s: Tattoo state corrupted (integer overflow).", G_STRFUNC);
return image->tattoo_state; return image->tattoo_state;
@ -2351,7 +2351,7 @@ gimp_image_set_tattoo_state (GimpImage *image,
g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE); g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE);
/* Check that the layer tatoos don't overlap with channel or vector ones */ /* Check that the layer tattoos don't overlap with channel or vector ones */
for (list = GIMP_LIST (image->layers)->list; for (list = GIMP_LIST (image->layers)->list;
list; list;
list = g_list_next (list)) list = g_list_next (list))

View file

@ -121,7 +121,7 @@ struct _GimpImage
gint instance_count; /* number of instances */ gint instance_count; /* number of instances */
gint disp_count; /* number of displays */ gint disp_count; /* number of displays */
GimpTattoo tattoo_state; /* the next unique tattoo to use*/ GimpTattoo tattoo_state; /* the last used tattoo */
TileManager *shadow; /* shadow buffer tiles */ TileManager *shadow; /* shadow buffer tiles */
@ -425,11 +425,11 @@ gint gimp_image_get_vectors_index (const GimpImage *image,
const GimpVectors *vectors); const GimpVectors *vectors);
GimpLayer * gimp_image_get_layer_by_tattoo (const GimpImage *image, GimpLayer * gimp_image_get_layer_by_tattoo (const GimpImage *image,
GimpTattoo tatoo); GimpTattoo tattoo);
GimpChannel * gimp_image_get_channel_by_tattoo (const GimpImage *image, GimpChannel * gimp_image_get_channel_by_tattoo (const GimpImage *image,
GimpTattoo tatoo); GimpTattoo tattoo);
GimpVectors * gimp_image_get_vectors_by_tattoo (const GimpImage *image, GimpVectors * gimp_image_get_vectors_by_tattoo (const GimpImage *image,
GimpTattoo tatoo); GimpTattoo tattoo);
GimpLayer * gimp_image_get_layer_by_name (const GimpImage *image, GimpLayer * gimp_image_get_layer_by_name (const GimpImage *image,
const gchar *name); const gchar *name);