push an undo group instead of disabling undo on the image. Fixes bug

2003-04-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/tileblur.scm (script-fu-tile-blur):
	push an undo group instead of disabling undo on the image. Fixes
	bug #109681.
This commit is contained in:
Sven Neumann
2003-04-01 12:33:08 +00:00
committed by Sven Neumann
parent 6701ca7cf6
commit 33748d17cf
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-04-01 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/tileblur.scm (script-fu-tile-blur):
push an undo group instead of disabling undo on the image. Fixes
bug #109681.
2003-04-01 Sven Neumann <sven@gimp.org>
* app/gui/toolbox-menu.c (toolbox_menu_entries): removed some

View File

@ -23,7 +23,7 @@
(set! theHeight (car (gimp-drawable-height theLayer)))
(set! theWidth (car (gimp-drawable-width theLayer)))
(gimp-image-undo-disable theImage)
(gimp-undo-push-group-start theImage)
(gimp-layer-resize theLayer (* 3 theWidth) (* 3 theHeight) 0 0)
(gimp-rect-select theImage 0 0 theWidth theHeight REPLACE 0 0)
@ -44,7 +44,7 @@
(gimp-layer-resize theLayer theWidth theHeight (- 0 theWidth) (- 0 theHeight))
(gimp-layer-set-offsets theLayer 0 0)
(gimp-image-undo-enable theImage)
(gimp-undo-push-group-end theImage)
(gimp-displays-flush)
)