[gimp] app: push the right drawable undo here too



commit e5e6638c32a4e03403f21bd25c675bb06943eda2
Author: Michael Natterer <mitch gimp org>
Date:   Sun Feb 21 12:23:51 2010 +0100

    app: push the right drawable undo here too

 app/text/gimptextlayer.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index 1412284..f0f2e67 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -457,7 +457,11 @@ gimp_text_layer_set (GimpTextLayer *layer,
   if (layer->modified)
     {
       gimp_image_undo_push_text_layer_modified (image, NULL, layer);
-      gimp_image_undo_push_drawable_mod (image, NULL, GIMP_DRAWABLE (layer));
+      gimp_drawable_push_undo (GIMP_DRAWABLE (layer), NULL,
+                               0, 0,
+                               gimp_item_get_width  (GIMP_ITEM (layer)),
+                               gimp_item_get_height (GIMP_ITEM (layer)),
+                               NULL, FALSE);
     }
 
   gimp_image_undo_push_text_layer (image, undo_desc, layer, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]