Fix color value for filters

http://www.kdenlive.org/mantis/view.php?id=320

svn path=/branches/KDE4/; revision=2697
parent 68cf99d0
......@@ -344,7 +344,8 @@ void EffectStackEdit::collectAllParameters() {
setValue = box->checkState() == Qt::Checked ? "1" : "0" ;
} else if (type == "color") {
KColorButton *color = ((Ui::Colorval_UI*)valueItems[paramName])->kcolorbutton;
setValue.sprintf("0x%08x", color->color().rgba());
setValue = color->color().name();
setValue.replace('#', "0x");
} else if (type == "complex") {
ComplexParameter *complex = ((ComplexParameter*)valueItems[paramName+"complex"]);
namenode.item(i) = complex->getParamDesc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment