Segfault fix

This commit is contained in:
ArsenArsen 2017-09-18 16:08:37 +02:00
parent 439808e3de
commit 42c8f987df

View File

@ -30,5 +30,6 @@ void BlurItem::mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) {
}
void BlurItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
if (rect != nullptr) rect->setPen(Qt::NoPen);
delete rect;
rect = 0;
}