diff --git a/src/libs/vtools/dialogs/tools/dialogtool.cpp b/src/libs/vtools/dialogs/tools/dialogtool.cpp index 9f175d716..ac84fa973 100644 --- a/src/libs/vtools/dialogs/tools/dialogtool.cpp +++ b/src/libs/vtools/dialogs/tools/dialogtool.cpp @@ -537,13 +537,13 @@ bool DialogTool::DoublePoints(QListWidget *listWidget, const VContainer *data) const VPieceNode secondNode = RowNode(listWidget, FindNotExcludedNodeDown(listWidget, firstIndex+1)); QSharedPointer firstPoint; - if (firstNode.GetTypeTool() == Tool::NodePoint) + if (firstNode.GetTypeTool() == Tool::NodePoint && not (firstNode.GetId() == NULL_ID)) { firstPoint = data->GeometricObject(firstNode.GetId()); } QSharedPointer secondPoint; - if (secondNode.GetTypeTool() == Tool::NodePoint) + if (secondNode.GetTypeTool() == Tool::NodePoint && not (secondNode.GetId() == NULL_ID)) { secondPoint = data->GeometricObject(secondNode.GetId()); }