[gegl/soc-2011-warp: 12/16] vector-fill: fix path_changed
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-warp: 12/16] vector-fill: fix path_changed
- Date: Wed, 29 Jun 2011 09:17:49 +0000 (UTC)
commit 3114897d226e4af50a578ca662d5b9a2b6b86537
Author: Michael Murà <batolettre gmail com>
Date: Tue Jun 28 21:09:41 2011 +0200
vector-fill: fix path_changed
operations/external/vector-fill.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/operations/external/vector-fill.c b/operations/external/vector-fill.c
index b53e8a6..9f71166 100644
--- a/operations/external/vector-fill.c
+++ b/operations/external/vector-fill.c
@@ -64,12 +64,12 @@ static void path_changed (GeglPath *path,
gdouble x0, x1, y0, y1;
gegl_path_get_bounds(o->d, &x0, &x1, &y0, &y1);
- rect.x = x0;
- rect.y = y0;
- rect.width = x1 - x0;
- rect.height = y1 - y0;
+ rect.x = x0 - 1;
+ rect.y = y0 - 1;
+ rect.width = x1 - x0 + 2;
+ rect.height = y1 - y0 + 2;
- gegl_operation_invalidate (userdata, roi, TRUE);
+ gegl_operation_invalidate (userdata, &rect, TRUE);
};
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]