Commit e99b21ab authored by Dmitry Kazakov's avatar Dmitry Kazakov

Cleanup: initialize KoColor with a proper color space in KisPainter

parent 53769cbb
......@@ -76,6 +76,8 @@
struct Q_DECL_HIDDEN KisPainter::Private {
Private(KisPainter *_q) : q(_q) {}
Private(KisPainter *_q, const KoColorSpace *cs)
: q(_q), paintColor(cs), backgroundColor(cs) {}
KisPainter *q;
......@@ -134,7 +136,7 @@ KisPainter::KisPainter()
}
KisPainter::KisPainter(KisPaintDeviceSP device)
: d(new Private(this))
: d(new Private(this, device->colorSpace()))
{
init();
Q_ASSERT(device);
......@@ -142,7 +144,7 @@ KisPainter::KisPainter(KisPaintDeviceSP device)
}
KisPainter::KisPainter(KisPaintDeviceSP device, KisSelectionSP selection)
: d(new Private(this))
: d(new Private(this, device->colorSpace()))
{
init();
Q_ASSERT(device);
......
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