Commit 6830e66a authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix crash in halftone filter

When using pixelSelection->invert() we must ensure that selection's
default bounds object is initialized properly.

BUG:407045
parent 2b2075e4
......@@ -121,7 +121,7 @@ void KisHalftoneFilter::processImpl(KisPaintDeviceSP device,
painter.setCompositeOp(device->colorSpace()->compositeOp(COMPOSITE_OVER));
KisPaintDeviceSP dab = device->createCompositionSourceDevice();
KisPainter dbPainter(dab);
KisSelectionSP alpha = new KisSelection();
KisSelectionSP alpha = new KisSelection(new KisSelectionEmptyBounds(0));
alpha->pixelSelection()->copyAlphaFrom(device, applyRect);
device->fill(applyRect, backgroundC);
dbPainter.setAntiAliasPolygonFill(config->getBool("antiAliasing", true));
......
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