Segfault fix
This commit is contained in:
parent
439808e3de
commit
42c8f987df
@ -30,5 +30,6 @@ void BlurItem::mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BlurItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
|
void BlurItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
|
||||||
if (rect != nullptr) rect->setPen(Qt::NoPen);
|
delete rect;
|
||||||
|
rect = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user