Commit 0bbe01be authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix initialization of the default bounds object for filter and fill layers

Fixes T2247
BUG:361728
parent cb342ec3
......@@ -182,7 +182,7 @@ void KisSelectionBasedLayer::resetCache(const KoColorSpace *colorSpace)
if (!m_d->paintDevice ||
!(*m_d->paintDevice->colorSpace() == *colorSpace)) {
m_d->paintDevice = new KisPaintDevice(colorSpace);
m_d->paintDevice = new KisPaintDevice(this, colorSpace, new KisDefaultBounds(image()));
} else {
m_d->paintDevice->clear();
}
......
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