Commit 0a8cdf51 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Warn if we are using a compositeop that's not there and falling

through to OVER

svn path=/trunk/koffice/; revision=868874
parent d50b88a3
......@@ -45,7 +45,7 @@ struct KoColorSpace::Private {
KoConvolutionOp* convolutionOp;
QThreadStorage< QVector<quint8>* > conversionCache;
mutable KoColorConversionTransformation* transfoToRGBA16;
mutable KoColorConversionTransformation* transfoFromRGBA16;
mutable KoColorConversionTransformation* transfoToLABA16;
......@@ -173,8 +173,10 @@ const KoCompositeOp * KoColorSpace::compositeOp(const QString & id) const
{
if ( d->compositeOps.contains( id ) )
return d->compositeOps.value( id );
else
else {
kWarning() << "Asking for non-existent composite operation " << id << ", returning " << COMPOSITE_OVER;
return d->compositeOps.value( COMPOSITE_OVER );
}
}
void KoColorSpace::addCompositeOp(const KoCompositeOp * op)
......@@ -326,7 +328,7 @@ void KoColorSpace::bitBlt(quint8 *dst,
return;
if (!(*this == *srcSpace)) {
quint32 len = pixelSize() * rows * cols;
QVector<quint8> * conversionCache = threadLocalConversionCache(len);
......
......@@ -60,9 +60,10 @@ class PIGMENTCMS_EXPORT KoColorTransformation {
/**
* Update the parameters of a cached transformation object.
* The default implementation recursively call \ref setParameter
* The default implementation recursively calls \ref setParameter
*/
virtual void setParameters(const QHash<QString, QVariant> & parameters);
/**
* Update one parameter of a cached transformation object.
*
......
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