From f60c710ee10d50d68197665e1c2c0ad4d42fd5a6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 19 Nov 2016 18:52:47 +0200 Subject: [PATCH] Changes angle type allowed only for point nodes. --HG-- branch : feature --- src/libs/vpatterndb/vpiecenode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/vpatterndb/vpiecenode.cpp b/src/libs/vpatterndb/vpiecenode.cpp index 4a6f7af26..a475d6735 100644 --- a/src/libs/vpatterndb/vpiecenode.cpp +++ b/src/libs/vpatterndb/vpiecenode.cpp @@ -159,7 +159,10 @@ PieceNodeAngle VPieceNode::GetAngleType() const //--------------------------------------------------------------------------------------------------------------------- void VPieceNode::SetAngleType(PieceNodeAngle type) { - d->m_angleType = type; + if (d->m_typeTool == Tool::NodePoint) + { + d->m_angleType = type; + } } // Friend functions