From 43b71cd9e3f63014065abaa39d5d2729d225568c Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Wed, 19 Feb 2020 18:22:09 +0100 Subject: [PATCH] router: Clear() method for PNS::LINE --- pcbnew/router/pns_line.cpp | 8 ++++++++ pcbnew/router/pns_line.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/pcbnew/router/pns_line.cpp b/pcbnew/router/pns_line.cpp index cdf2968948..c7304205e6 100644 --- a/pcbnew/router/pns_line.cpp +++ b/pcbnew/router/pns_line.cpp @@ -941,4 +941,12 @@ bool LINE::HasLockedSegments() const return false; } +void LINE::Clear() +{ + m_hasVia = false; + m_line.Clear(); } + + +} + diff --git a/pcbnew/router/pns_line.h b/pcbnew/router/pns_line.h index 63f7d189f7..73ee420880 100644 --- a/pcbnew/router/pns_line.h +++ b/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 )