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

Fix crash in halftone filter

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

parent 2b2075e4
......@@ -121,7 +121,7 @@ void KisHalftoneFilter::processImpl(KisPaintDeviceSP device,
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));
Supports Markdown
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