[gimp] app: image_map always set crop extents
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: image_map always set crop extents
- Date: Sat, 1 Jun 2013 14:44:32 +0000 (UTC)
commit 63478e354360c0dffbc09a6639e5b059aa807a1f
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Jun 1 16:38:05 2013 +0200
app: image_map always set crop extents
app/core/gimpimagemap.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index 914d4e8..8de42eb 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -358,6 +358,17 @@ gimp_image_map_apply (GimpImageMap *image_map,
image_map->filter_area.x,
image_map->filter_area.y);
}
+ else
+ {
+ GimpItem *item = GIMP_ITEM (image_map->drawable);
+ gdouble width = gimp_item_get_width (item);
+ gdouble height = gimp_item_get_height (item);
+
+ gegl_node_set (image_map->crop,
+ "width", width,
+ "height", height,
+ NULL);
+ }
active_mask = gimp_drawable_get_active_mask (image_map->drawable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]