[gimp] Bug 791386 - New layer with AUTO everything always uses normal mode
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 791386 - New layer with AUTO everything always uses normal mode
- Date: Fri, 8 Dec 2017 14:05:53 +0000 (UTC)
commit 776b4a9a6b834d1ce7e160ed4d316dc8e255ab84
Author: Ell <ell_se yahoo com>
Date: Fri Dec 8 09:01:37 2017 -0500
Bug 791386 - New layer with AUTO everything always uses normal mode
In gimp_layer_new(), set opacity and mode using the setter
functions, instead of modifying the members directly, so that all
the necessary side effects take place.
app/core/gimplayer-new.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimplayer-new.c b/app/core/gimplayer-new.c
index d5132c5..30a88a5 100644
--- a/app/core/gimplayer-new.c
+++ b/app/core/gimplayer-new.c
@@ -69,8 +69,8 @@ gimp_layer_new (GimpImage *image,
opacity = CLAMP (opacity, GIMP_OPACITY_TRANSPARENT, GIMP_OPACITY_OPAQUE);
- layer->opacity = opacity;
- layer->mode = mode;
+ gimp_layer_set_opacity (layer, opacity, FALSE);
+ gimp_layer_set_mode (layer, mode, FALSE);
return layer;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]