Commit 38cb472f authored by Timothée Giet's avatar Timothée Giet
Browse files

fix crash on open/create file

that was caused by commit ccce1da .
Now it doesn't crash and fix for autobrush dimensions still works.
parent b3a4b0b9
......@@ -66,11 +66,11 @@ KisAutoBrush::KisAutoBrush(KisMaskGenerator* as, qreal angle, qreal randomness,
d->density = density;
d->idealThreadCountCached = QThread::idealThreadCount();
setBrushType(MASK);
setWidth(qMax(qreal(1.0), d->shape->width()));
setHeight(qMax(qreal(1.0), d->shape->height()));
QImage image = createBrushPreview();
setImage(image);
setBrushTipImage(image);
setWidth(qMax(qreal(1.0), d->shape->width()));
setHeight(qMax(qreal(1.0), d->shape->height()));
setAngle(angle);
}
......
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