[gimp/soc-2011-warp] imagemap: always update the translate node to avoid trouble
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-warp] imagemap: always update the translate node to avoid trouble
- Date: Tue, 26 Jul 2011 14:35:13 +0000 (UTC)
commit 4f5b202be1055bcefbd60c485c43cbc6ccf9be4d
Author: Michael Murà <batolettre gmail com>
Date: Tue Jul 26 16:30:55 2011 +0200
imagemap: always update the translate node to avoid trouble
app/core/gimpimagemap.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index 3d0544d..b4c52b3 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -630,7 +630,7 @@ gimp_image_map_apply_real (GimpImageMap *image_map,
/* If undo tiles don't exist, or change size, (re)allocate */
reallocate = gimp_image_map_update_undo_tiles (image_map,
- full_region);
+ full_region);
if (image_map->operation)
{
@@ -646,17 +646,17 @@ gimp_image_map_apply_real (GimpImageMap *image_map,
"linear", TRUE,
NULL);
- gegl_node_set (image_map->translate,
- "x", (gdouble) full_region->x,
- "y", (gdouble) full_region->y,
- NULL);
-
gegl_node_set (image_map->output,
"tile-manager", gimp_drawable_get_shadow_tiles (image_map->drawable),
"linear", TRUE,
NULL);
}
+ gegl_node_set (image_map->translate,
+ "x", (gdouble) full_region->x,
+ "y", (gdouble) full_region->y,
+ NULL);
+
image_map->processor = gegl_node_new_processor (image_map->output,
to_render);
}
@@ -718,7 +718,7 @@ gimp_image_map_update_undo_tiles (GimpImageMap *image_map,
undo_height = 0;
}
- if (! image_map->undo_tiles ||
+ if (! image_map->undo_tiles ||
undo_offset_x != rect->x ||
undo_offset_y != rect->y ||
undo_width != rect->width ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]