Commit 2f31d12f authored by Committed by Pedro Gimeno Fortea
Fix off-by-one when dragging the selection. Fixes the last pending issue
2003-05-26 Pedro Gimeno <email@example.com> * app/tools/gimpeditselectiontool.c (selection_transform_segs): Fix off-by-one when dragging the selection. Fixes the last pending issue of bug #17904. Use temporary variables for clamp values. * app/display/gimpdisplayshell-selection.c (selection_transform_segs): Perform the clamping that fixes bug #110014 here instead of in the callers. Solves a rare case that was not properly handled before. (selection_render_points, selection_generate_segs): Remove the clamping code from here. * app/tools/gimpdrawtool.c (gimp_draw_tool_draw_rectangle): More clampings to avoid overflow of 16-bit coordinates.
Showing with 76 additions and 49 deletions