Commit 56a13166 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix endless loop

parent eef2caf3
......@@ -105,7 +105,7 @@ bool KisPngBrush::loadFromDevice(QIODevice *dev)
setValid(true);
if (brushTipImage().allGray()) {
if (image.allGray()) {
setBrushTipImage(image.convertToFormat(QImage::Format_Grayscale8));
setBrushType(MASK);
setHasColor(false);
......
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