app: properly round the bounding box in the move tool

This commit is contained in:
Simon Budig 2010-09-17 21:57:08 +02:00
parent ae0cf760ab
commit 610b6a23e2

View file

@ -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;