[gimp/soc-2010-cage-2: 5/8] fix rubber band selection for layer with offset



commit f379f3c467a8c733341bb21c3a9182da8ffe8b7b
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]