mirror of https://github.com/GNOME/gimp.git
applied patch from Dave Neary that changes the behavior from undo
2004-07-12 Michael Natterer <mitch@gimp.org> * plug-ins/script-fu/scripts/round-corners.scm: applied patch from Dave Neary that changes the behavior from undo disable/enable to using an undo group if the script doesn't work on a copy of the image. Fixes bug #146344.
This commit is contained in:
parent
5e25cdd239
commit
bfed40e9da
|
@ -1,3 +1,10 @@
|
|||
2004-07-12 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/scripts/round-corners.scm: applied patch from
|
||||
Dave Neary that changes the behavior from undo disable/enable to
|
||||
using an undo group if the script doesn't work on a copy of the
|
||||
image. Fixes bug #146344.
|
||||
|
||||
2004-07-12 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* menus/toolbox-menu.xml.in: applied patch from Brion Vibber
|
||||
|
|
|
@ -59,7 +59,10 @@
|
|||
img)))
|
||||
(pic-layer (car (gimp-image-get-active-drawable image))))
|
||||
|
||||
(gimp-image-undo-disable image)
|
||||
(cond ((= work-on-copy TRUE)
|
||||
(gimp-image-undo-disable image))
|
||||
((= work-on-copy FALSE)
|
||||
(gimp-image-undo-group-start image)))
|
||||
|
||||
; add an alpha channel to the image
|
||||
(gimp-layer-add-alpha pic-layer)
|
||||
|
@ -109,7 +112,11 @@
|
|||
(gimp-image-lower-layer image bg-layer))))
|
||||
|
||||
; clean up after the script
|
||||
(gimp-image-undo-enable image)
|
||||
(cond ((= work-on-copy TRUE)
|
||||
(gimp-image-undo-enable image))
|
||||
((= work-on-copy FALSE)
|
||||
(gimp-image-undo-group-end image)))
|
||||
|
||||
(if (= work-on-copy TRUE)
|
||||
(gimp-display-new image))
|
||||
(gimp-displays-flush)))
|
||||
|
|
Loading…
Reference in New Issue