Fix hiding inserted node in a pattern piece after its removal.

This commit is contained in:
Roman Telezhynskyi 2020-11-24 13:28:42 +02:00
parent ce94d0747d
commit 1539abaf4d
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
# Version 0.7.41 (unreleased)
- Bug fixes.
# Version 0.7.40 Nov 23, 2020
- New function Warning.
- [smart-pattern/valentina#80] Allow insertion of multiple nodes.

View File

@ -1788,7 +1788,6 @@ void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *sc
tool->setParentItem(parent);
tool->SetParentType(ParentType::Item);
tool->SetExluded(node.IsExcluded());
doc->IncrementReferens(node.GetId());
}
tool->setVisible(not node.IsExcluded());//Hide excluded point
break;
@ -1797,7 +1796,7 @@ void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *sc
case (Tool::NodeElArc):
case (Tool::NodeSpline):
case (Tool::NodeSplinePath):
doc->IncrementReferens(data->GetGObject(node.GetId())->getIdTool());
// Do nothing
break;
default:
qDebug()<<"Get wrong tool type. Ignore.";