Commit 393b1fd5 authored by Sven Neumann's avatar Sven Neumann

When using fixed_size selections create the

selection into the direction the user moved the mouse.


--Sven
parent 808e1c94
Wed Apr 7 00:50:13 MEST 1999 Sven Neumann <sven@gimp.org>
* app/rect_select.c: when using fixed_size selections create the
selection into the direction the user moved the mouse
1999-04-06 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/rect_select.h: oops, didn't commit this one.
......
......@@ -618,8 +618,8 @@ rect_select_motion (Tool *tool,
w = -w;
}
} else {
w = rect_sel->fixed_width;
h = rect_sel->fixed_height;
w = (x - ox > 0 ? rect_sel->fixed_width : -rect_sel->fixed_width);
h = (y - oy > 0 ? rect_sel->fixed_height : -rect_sel->fixed_height);
}
} else {
w = (x - ox);
......
......@@ -618,8 +618,8 @@ rect_select_motion (Tool *tool,
w = -w;
}
} else {
w = rect_sel->fixed_width;
h = rect_sel->fixed_height;
w = (x - ox > 0 ? rect_sel->fixed_width : -rect_sel->fixed_width);
h = (y - oy > 0 ? rect_sel->fixed_height : -rect_sel->fixed_height);
}
} else {
w = (x - ox);
......
......@@ -618,8 +618,8 @@ rect_select_motion (Tool *tool,
w = -w;
}
} else {
w = rect_sel->fixed_width;
h = rect_sel->fixed_height;
w = (x - ox > 0 ? rect_sel->fixed_width : -rect_sel->fixed_width);
h = (y - oy > 0 ? rect_sel->fixed_height : -rect_sel->fixed_height);
}
} else {
w = (x - ox);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment