From 610b6a23e2b9f6a46d51ba0cb72469bf4d1f0251 Mon Sep 17 00:00:00 2001 From: Simon Budig Date: Fri, 17 Sep 2010 21:57:08 +0200 Subject: [PATCH] app: properly round the bounding box in the move tool --- app/tools/gimpeditselectiontool.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c index cf5a59da35..2e0324c4f4 100644 --- a/app/tools/gimpeditselectiontool.c +++ b/app/tools/gimpeditselectiontool.c @@ -965,10 +965,15 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool) g_list_free (linked); } + x1 = floor (x1); + y1 = floor (y1); + x2 = ceil (x2); + y2 = ceil (y2); + gimp_draw_tool_draw_rectangle (draw_tool, FALSE, - ROUND (x1), ROUND (y1), - ROUND (x2 - x1), ROUND (y2 - y1), + x1, y1, + x2 - x1, y2 - y1, FALSE); } break;