Correct disabling line to the label.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-01-11 13:24:37 +02:00
parent ac5c8d8201
commit 4977604106
2 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,7 @@ QVector<QPointF> VAbstractDetail::CheckLoops(const QVector<QPointF> &points)
{ // Break, but not if intersects the first edge and the last edge in closed path
if (line1.p1() != crosPoint && line1.p2() != crosPoint &&
line2.p1() != crosPoint && line2.p2() != crosPoint)
{
{ // Break, but not if loop creates crosPoint when it is first or last point of lines
break;
}
}

View File

@ -108,6 +108,7 @@ void VToolSinglePoint::setName(const QString &name)
void VToolSinglePoint::SetEnabled(bool enabled)
{
SetToolEnabled(this, enabled);
SetToolEnabled(lineName, enabled);
}
//---------------------------------------------------------------------------------------------------------------------