GNOME Bugzilla – Bug 348317
tiny code cleanup in gimplevelstool.c
Last modified: 2008-01-15 13:10:13 UTC
No reason to convert to ASCII and back just to round off a number. (Also, my compiler whines whenever someone uses sprintf() instead of snprintf().)
Created attachment 69372 [details] [review] Patch to simplify levels_input_area_event() a little
Thanks for the patch, this was really ugly. Fixed in CVS: 2006-07-25 Michael Natterer <mitch@gimp.org> * app/tools/gimplevelstool.c (levels_input_area_event): Applied patch from Wim Lewis which fixes major uglyness (the code was rounding using sprintf() and atof() -- puke). Fixes bug #348317. ...and btw the replacement for sprintf() is g_snprintf() since apparently there are some platforms witch a broken or missing snprintf().