Commit 7b4d047d authored by Boudewijn Rempt's avatar Boudewijn Rempt

BUG:351560 Make sure a default KoColor is transparent

parent e495e9a0
......@@ -103,9 +103,10 @@ public:
* Blocks all the updates from execution. It doesn't affect
* strokes execution in any way. This tipe of lock is supposed
* strokes execution in any way. This type of lock is supposed
* to be held by the strokes themselves when they need a short
* access to some parts of the projection of the image.
* From all the other places you should use usual lock()/unlock()
* methods
......@@ -62,7 +62,7 @@ KoColor::KoColor(const KoColorSpace * colorSpace)
d->colorSpace = KoColorSpaceRegistry::instance()->permanentColorspace(colorSpace);
d->data = new quint8[d->colorSpace->pixelSize()];
d->colorSpace->fromQColor(Qt::black, d->data);
memset(d->data, 0, 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