use RINT() instead or ROUND() to get proper rounding of negative values.

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

	* app/display/gimpstatusbar.c (gimp_statusbar_push_coords)
	(gimp_statusbar_set_cursor): use RINT() instead or ROUND() to get
	proper rounding of negative values. Fixes bug #171497.
This commit is contained in:
Sven Neumann 2005-03-24 17:34:13 +00:00 committed by Sven Neumann
parent b5f1ae88e2
commit b41ee0c7ee
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-03-24 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c (gimp_statusbar_push_coords)
(gimp_statusbar_set_cursor): use RINT() instead or ROUND() to get
proper rounding of negative values. Fixes bug #171497.
2005-03-24 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/core-enums.[ch]

View File

@ -514,9 +514,9 @@ gimp_statusbar_push_coords (GimpStatusbar *statusbar,
{
g_snprintf (buf, sizeof (buf), statusbar->cursor_format_str,
title,
ROUND (x),
(gint) RINT (x),
separator,
ROUND (y));
(gint) RINT (y));
}
else /* show real world units */
{
@ -553,7 +553,7 @@ gimp_statusbar_push_length (GimpStatusbar *statusbar,
{
g_snprintf (buf, sizeof (buf), statusbar->length_format_str,
title,
ROUND (value));
(gint) RINT (value));
}
else /* show real world units */
{
@ -689,7 +689,7 @@ gimp_statusbar_set_cursor (GimpStatusbar *statusbar,
{
g_snprintf (buffer, sizeof (buffer),
statusbar->cursor_format_str,
"", ROUND (x), ", ", ROUND (y));
"", (gint) RINT (x), ", ", (gint) RINT (y));
}
else /* show real world units */
{