subtract 1 from outlined width/height instead of adding 1 to filled.

2006-06-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpdrawtool.c
	(gimp_draw_tool_draw_rectangle_by_anchor)
	(gimp_draw_tool_draw_arc_by_anchor): subtract 1 from outlined
	width/height instead of adding 1 to filled.
This commit is contained in:
Michael Natterer 2006-06-05 21:39:23 +00:00 committed by Michael Natterer
parent e0d2542469
commit 64032cbaca
2 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2006-06-05 Michael Natterer <mitch@gimp.org>
* app/tools/gimpdrawtool.c
(gimp_draw_tool_draw_rectangle_by_anchor)
(gimp_draw_tool_draw_arc_by_anchor): subtract 1 from outlined
width/height instead of adding 1 to filled.
2006-06-05 Michael Natterer <mitch@gimp.org>
* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw): use

View file

@ -545,10 +545,10 @@ gimp_draw_tool_draw_rectangle_by_anchor (GimpDrawTool *draw_tool,
anchor,
&tx, &ty);
if (filled)
if (! filled)
{
width++;
height++;
width -= 1;
height -= 1;
}
gimp_canvas_draw_rectangle (GIMP_CANVAS (shell->canvas),
@ -591,10 +591,10 @@ gimp_draw_tool_draw_arc_by_anchor (GimpDrawTool *draw_tool,
anchor,
&tx, &ty);
if (filled)
if (! filled)
{
radius_x += 1;
radius_y += 1;
radius_x -= 1;
radius_y -= 1;
}
gimp_canvas_draw_arc (GIMP_CANVAS (shell->canvas), GIMP_CANVAS_STYLE_XOR,