[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra/kexi-altertable-staniek] krita/image: By default Adjustment Layers should have COMPOSITE_C
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2012-10-31 11:35:03
Message-ID: 20121031113503.DC6D7A6116 () git ! kde ! org
[Download RAW message or body]

Git commit f357ea38edfcba019c9e3c5dadcee3c47e66c976 by Jaroslaw Staniek, on behalf of Dmitry Kazakov.
Committed on 27/10/2012 at 15:44.
Pushed by staniek into branch 'kexi-altertable-staniek'.

By default Adjustment Layers should have COMPOSITE_COPY op

Otherwise it makes users perplexed with the result.

BUG:294122

M  +4    -0    krita/image/kis_adjustment_layer.cc

http://commits.kde.org/calligra/f357ea38edfcba019c9e3c5dadcee3c47e66c976

diff --git a/krita/image/kis_adjustment_layer.cc b/krita/image/kis_adjustment_layer.cc
index de82860..540689a 100644
--- a/krita/image/kis_adjustment_layer.cc
+++ b/krita/image/kis_adjustment_layer.cc
@@ -46,6 +46,10 @@ KisAdjustmentLayer::KisAdjustmentLayer(KisImageWSP image,
         : KisSelectionBasedLayer(image.data(), name, selection),
         m_d(new Private())
 {
+    // by default Adjustmen Layers have a copy composition,
+    // which is more natural for users
+    setCompositeOp(COMPOSITE_COPY);
+
     if(kfc)
         m_d->filterConfig = KisFilterRegistry::instance()->cloneConfiguration(kfc);
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic