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 346755 - Misleading comment about image tattoo state in gimpimage.h
Misleading comment about image tattoo state in gimpimage.h
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal trivial
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-07-06 12:36 UTC by Henning Makholm
Modified: 2006-07-06 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Henning Makholm 2006-07-06 12:36:19 UTC
In the definition of struct _GimpImage in app/core/gimpimage.h, the tattoo_state field is documented as being "the next unique tattoo to use". In fact it is the _last_ unique tattoo generated, and the next one to use is the value of tattoo_state PLUS ONE. (This can be seen from the code of gimp_image_get_new_tattoo() in gimpimage.c).
Comment 1 Sven Neumann 2006-07-06 14:40:51 UTC
Fixed in CVS, thanks for the report.

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

        * app/core/gimpimage.[ch]: corrected comment (bug #346755).