Commit aa39709d authored by Halla Rempt's avatar Halla Rempt
Browse files

Forward port opacity fix for bug 127443.

CCBUG:127443

svn path=/trunk/koffice/; revision=601437
parent fb459646
......@@ -97,6 +97,7 @@ void KisEmbossFilter::KisEmbossFilter::process(const KisPaintDeviceSP src, const
// FIXME: COLORSPACE_INDEPENDENCE or at least work IN RGB16A
QColor color1;
quint8 opacity;
src->colorSpace()->toQColor(it.oldRawData(), &color1);
QColor color2;
......@@ -110,7 +111,7 @@ void KisEmbossFilter::KisEmbossFilter::process(const KisPaintDeviceSP src, const
Gray = CLAMP((R + G + B) / 3, 0, quint8_MAX);
dst->colorSpace()->fromQColor(QColor(Gray, Gray, Gray), dstIt.rawData());
dst->colorSpace()->fromQColor(QColor(Gray, Gray, Gray), opacity, dstIt.rawData());
}
}
......
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