[gimp] Bug 739775 - Select->Distort activates topmost layer
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 739775 - Select->Distort activates topmost layer
- Date: Sun, 23 Nov 2014 19:53:50 +0000 (UTC)
commit 300b756e853ea3de77a05e3fe5abdfd2fb51d437
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 23 20:52:15 2014 +0100
Bug 739775 - Select->Distort activates topmost layer
Remeber the active layer in distress-selection.scm and set it again
when the script is done.
plug-ins/script-fu/scripts/distress-selection.scm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/script-fu/scripts/distress-selection.scm
b/plug-ins/script-fu/scripts/distress-selection.scm
index e2e19dc..03a0cfc 100644
--- a/plug-ins/script-fu/scripts/distress-selection.scm
+++ b/plug-ins/script-fu/scripts/distress-selection.scm
@@ -35,6 +35,7 @@
(theHeight (car (gimp-image-height inImage)))
(theLayer 0)
(theMode (car (gimp-image-base-type inImage)))
+ (prevLayer (car (gimp-image-get-active-layer inImage)))
)
(gimp-context-push)
@@ -92,6 +93,8 @@
)
(gimp-image-undo-group-end theImage)
+ (gimp-image-set-active-layer theImage prevLayer)
+
(gimp-displays-flush)
(gimp-context-pop)
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]