Skip to content
Snippets Groups Projects
Commit d3da523f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[j.crash6] restoration of setDrawingInProgress solves the most flagrant crashes in mask editor ()

Merging branch 'j.crash6'  into 'main'.

See merge request !2128
parents 88ed2a32 bebdaf6c
No related branches found
No related tags found
1 merge request!2128restoration of setDrawingInProgress solves the most flagrant crashes in mask editor
Pipeline #119832 passed
......@@ -153,7 +153,7 @@ void MaskGraphicsScene::cancelCurrentDrawing()
if (m_drawing_in_progress) {
ASSERT(m_currentItem);
m_maskContainerModel->removeMask(m_currentItem.get());
m_drawing_in_progress = false;
setDrawingInProgress(false);
}
}
......@@ -303,7 +303,7 @@ void MaskGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
// making item beneath of mouse release position to be selected
makeViewAtMousePosSelected(event);
}
m_drawing_in_progress = false;
setDrawingInProgress(false);
}
} else
QGraphicsScene::mouseReleaseEvent(event);
......@@ -549,7 +549,7 @@ bool MaskGraphicsScene::isValidForMaskAllDrawing(QGraphicsSceneMouseEvent*) cons
bool MaskGraphicsScene::isAreaContains(QGraphicsSceneMouseEvent* event, MaskType viewType) const
{
for (QGraphicsItem* graphicsItem : this->items(event->scenePos()))
for (QGraphicsItem* graphicsItem : items(event->scenePos()))
if (graphicsItem->type() == viewType)
return true;
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment