]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackedit.cpp
- Use gradient background for luma in curve widget
[kdenlive] / src / effectstackedit.cpp
index 5b87920d7570c8b3fd45487f2468aa0eb21c3a7c..d5270cabe682d5ecfdf2bd0f28afe797d1670bf4 100644 (file)
@@ -145,10 +145,7 @@ void EffectStackEdit::meetDependency(const QString& name, QString type, QString
         KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
         if (curve) {
             int color = value.toInt();
-            if (color < 3)
-                curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)color)));
-            else
-                curve->setPixmap(QPixmap());
+            curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)color)));
         }
     }
 }