use the closest corner of the current pixel as origin. Fixes bug #329000.

2006-01-30  Michael Schumacher  <schumaml@cvs.gnome.org>

	* app/tools/gimpmeasuretool.c: use the closest corner of the
	current pixel as origin. Fixes bug #329000.
This commit is contained in:
Michael Schumacher 2006-01-30 20:12:19 +00:00 committed by Michael Schumacher
parent 2d80597fe9
commit 8fa7568565
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-30 Michael Schumacher <schumaml@cvs.gnome.org>
* app/tools/gimpmeasuretool.c: use the closest corner of the
current pixel as origin. Fixes bug #329000.
2006-01-30 Sven Neumann <sven@gimp.org>
* app/config/config-types.h: moved GIMP_PARAM defines from here ...

View File

@ -300,8 +300,8 @@ gimp_measure_tool_button_press (GimpTool *tool,
}
/* set the first point and go into ADDING mode */
mtool->x[0] = coords->x;
mtool->y[0] = coords->y;
mtool->x[0] = coords->x + 0.5;
mtool->y[0] = coords->y + 0.5;
mtool->point = 0;
mtool->num_points = 1;
mtool->function = ADDING;