From 06b3e1471c25419eae44563153e65d8d8c40af25 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 27 Feb 2003 18:47:48 +0000 Subject: [PATCH] fixed typo which caused layer mask undo to fail. 2003-02-27 Sven Neumann * app/core/gimpimage-undo-push.c (undo_push_layer_mask): fixed typo which caused layer mask undo to fail. --- ChangeLog | 5 +++++ app/core/gimpimage-undo-push.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1a707854c..81b9d218c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-27 Sven Neumann + + * app/core/gimpimage-undo-push.c (undo_push_layer_mask): fixed + typo which caused layer mask undo to fail. + 2003-02-27 Raphael Quinet * plug-ins/script-fu/scripts/Makefile.am diff --git a/app/core/gimpimage-undo-push.c b/app/core/gimpimage-undo-push.c index 2cc2a5d8f3..dd0f20bc3f 100644 --- a/app/core/gimpimage-undo-push.c +++ b/app/core/gimpimage-undo-push.c @@ -117,8 +117,9 @@ gimp_image_undo_push_image (GimpImage *gimage, image_undo = new->data; - /* If we cannot create a new temp buf--either because our parameters are - * degenerate or something else failed, simply return an unsuccessful push. + /* If we cannot create a new temp buf -- either because our + * parameters are degenerate or something else failed, simply + * return an unsuccessful push. */ tiles = tile_manager_new ((x2 - x1), (y2 - y1), gimp_drawable_bytes (drawable)); @@ -249,7 +250,8 @@ undo_pop_image (GimpUndo *undo, { /* swap tiles, not pixels! */ - src_tile = tile_manager_get_tile (tiles, j, i, TRUE, FALSE /* TRUE */); + src_tile = tile_manager_get_tile (tiles, + j, i, TRUE, FALSE /*TRUE*/); dest_tile = tile_manager_get_tile (gimp_drawable_data (image_undo->drawable), j, i, TRUE, FALSE /* TRUE */); tile_manager_map_tile (tiles, j, i, dest_tile); @@ -1391,8 +1393,8 @@ undo_push_layer_mask (GimpImage *gimage, lmu = new->data; - lmu->layer = g_object_ref (mask); - lmu->mask = mask; + lmu->layer = layer; + lmu->mask = g_object_ref (mask); return TRUE; }