[gimp/soc-2010-cage-2] fix rubber band selection for layer with offset
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] fix rubber band selection for layer with offset
- Date: Mon, 10 Jan 2011 17:25:59 +0000 (UTC)
commit 23d0a74bde385d0f447f1b7323285bf75eac6d9b
Author: Michael Muré <batolettre gmail com>
Date: Mon Jan 10 18:24:27 2011 +0100
fix rubber band selection for layer with offset
app/tools/gimpcagetool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index d10be25..f343ef5 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -557,8 +557,8 @@ gimp_cage_tool_button_release (GimpTool *tool,
case DEFORM_STATE_SELECTING:
{
- GeglRectangle area = {MIN(ct->selection_start_x, coords->x),
- MIN(ct->selection_start_y, coords->y),
+ GeglRectangle area = {MIN(ct->selection_start_x, coords->x) - ct->offset_x,
+ MIN(ct->selection_start_y, coords->y) - ct->offset_y,
abs (ct->selection_start_x - coords->x),
abs (ct->selection_start_y - coords->y)};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]