pcbnew: Do not allow drag to violate DRC without permission
m_dragstatus is set to true when a valid route is created given the user's constraints. We need to check this before committing the route to the board. Fixes: lp:1794810 * https://bugs.launchpad.net/kicad/+bug/1794810
This commit is contained in:
parent
453dadbc3c
commit
317ca8e64d
|
@ -323,6 +323,10 @@ bool DRAGGER::FixRoute()
|
||||||
|
|
||||||
if( node )
|
if( node )
|
||||||
{
|
{
|
||||||
|
// Collisions still prevent fixing unless "Allow DRC violations" is checked
|
||||||
|
if( !m_dragStatus )
|
||||||
|
return false;
|
||||||
|
|
||||||
Router()->CommitRouting( node );
|
Router()->CommitRouting( node );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue