Fix hiding inserted node in a pattern piece after its removal.
This commit is contained in:
parent
ce94d0747d
commit
1539abaf4d
|
@ -1,3 +1,6 @@
|
||||||
|
# Version 0.7.41 (unreleased)
|
||||||
|
- Bug fixes.
|
||||||
|
|
||||||
# Version 0.7.40 Nov 23, 2020
|
# Version 0.7.40 Nov 23, 2020
|
||||||
- New function Warning.
|
- New function Warning.
|
||||||
- [smart-pattern/valentina#80] Allow insertion of multiple nodes.
|
- [smart-pattern/valentina#80] Allow insertion of multiple nodes.
|
||||||
|
|
|
@ -1788,7 +1788,6 @@ void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *sc
|
||||||
tool->setParentItem(parent);
|
tool->setParentItem(parent);
|
||||||
tool->SetParentType(ParentType::Item);
|
tool->SetParentType(ParentType::Item);
|
||||||
tool->SetExluded(node.IsExcluded());
|
tool->SetExluded(node.IsExcluded());
|
||||||
doc->IncrementReferens(node.GetId());
|
|
||||||
}
|
}
|
||||||
tool->setVisible(not node.IsExcluded());//Hide excluded point
|
tool->setVisible(not node.IsExcluded());//Hide excluded point
|
||||||
break;
|
break;
|
||||||
|
@ -1797,7 +1796,7 @@ void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *sc
|
||||||
case (Tool::NodeElArc):
|
case (Tool::NodeElArc):
|
||||||
case (Tool::NodeSpline):
|
case (Tool::NodeSpline):
|
||||||
case (Tool::NodeSplinePath):
|
case (Tool::NodeSplinePath):
|
||||||
doc->IncrementReferens(data->GetGObject(node.GetId())->getIdTool());
|
// Do nothing
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qDebug()<<"Get wrong tool type. Ignore.";
|
qDebug()<<"Get wrong tool type. Ignore.";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user