Fix crash while delete the last base point.
Disable removing by key Delete if a base point is the last.
This commit is contained in:
parent
5fcefc0642
commit
17de0410a0
|
@ -228,6 +228,11 @@ void VToolBasePoint::SetBasePointPos(const QPointF &pos)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolBasePoint::DeleteToolWithConfirm(bool ask)
|
||||
{
|
||||
if (doc->CountPP() <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
qCDebug(vTool, "Deleting base point.");
|
||||
emit VAbstractValApplication::VApp()->getSceneView()->itemClicked(nullptr);
|
||||
if (ask)
|
||||
|
|
Loading…
Reference in New Issue
Block a user