Browse Source

router: Clear() method for PNS::LINE

pull/16/head
Tomasz Wlostowski 6 years ago
parent
commit
43b71cd9e3
  1. 8
      pcbnew/router/pns_line.cpp
  2. 3
      pcbnew/router/pns_line.h

8
pcbnew/router/pns_line.cpp

@ -941,4 +941,12 @@ bool LINE::HasLockedSegments() const
return false;
}
void LINE::Clear()
{
m_hasVia = false;
m_line.Clear();
}
}

3
pcbnew/router/pns_line.h

@ -293,6 +293,9 @@ public:
bool HasLoops() const;
bool HasLockedSegments() const;
void Clear();
void Merge ( const LINE& aOther );
OPT_BOX2I ChangedArea( const LINE* aOther ) const;
void SetSnapThreshhold( int aThreshhold )

Loading…
Cancel
Save