Commit 34fb4d11 authored by Cyrille Berger's avatar Cyrille Berger

don't compare colorspace by pointer but by value

svn path=/trunk/koffice/; revision=1013404
parent 428a8f29
......@@ -108,7 +108,7 @@ KoColor::KoColor(const KoColor & rhs)
: d(new Private())
d->colorSpace = rhs.colorSpace();
Q_ASSERT(d->colorSpace == KoColorSpaceRegistry::instance()->permanentColorspace(d->colorSpace));
Q_ASSERT(*d->colorSpace == *KoColorSpaceRegistry::instance()->permanentColorspace(d->colorSpace));
if(d->colorSpace && rhs.d->data)
d->data = new quint8[d->colorSpace->pixelSize()];
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