[gimp/soc-2010-cage-2] app: Fix cage operaton cliping offset
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: Fix cage operaton cliping offset
- Date: Thu, 4 Nov 2010 17:54:28 +0000 (UTC)
commit 040c415905a4107d071981a6f144ccc86e7e6713
Author: Alexia Death <alexiadeath gmail com>
Date: Thu Nov 4 19:54:07 2010 +0200
app: Fix cage operaton cliping offset
app/gegl/gimpoperationcagetransform.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 5842294..7330372 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -322,19 +322,19 @@ gimp_operation_cage_transform_interpolate_source_coords_recurs (GimpOperationCag
gint xmin, xmax, ymin, ymax;
GeglRectangle rect = {0, 0, 1, 1};
- if (p1_d.x > roi->width) return;
- if (p2_d.x > roi->width) return;
- if (p3_d.x > roi->width) return;
- if (p1_d.y > roi->height) return;
- if (p2_d.y > roi->height) return;
- if (p3_d.y > roi->height) return;
-
- if (p1_d.x <= 0) return;
- if (p2_d.x <= 0) return;
- if (p3_d.x <= 0) return;
- if (p1_d.y <= 0) return;
- if (p2_d.y <= 0) return;
- if (p3_d.y <= 0) return;
+ if (p1_d.x > roi->x + roi->width) return;
+ if (p2_d.x > roi->x + roi->width) return;
+ if (p3_d.x > roi->x + roi->width) return;
+ if (p1_d.y > roi->y + roi->height) return;
+ if (p2_d.y > roi->y + roi->height) return;
+ if (p3_d.y > roi->y + roi->height) return;
+
+ if (p1_d.x <= roi->x) return;
+ if (p2_d.x <= roi->x) return;
+ if (p3_d.x <= roi->x) return;
+ if (p1_d.y <= roi->y) return;
+ if (p2_d.y <= roi->y) return;
+ if (p3_d.y <= roi->y) return;
xmin = xmax = p1_d.x;
ymin = ymax = p1_d.y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]