mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Exact clearance is allowed; less than clearance is an error.
Also fixes a bug where the units weren't shown for extra precision numbers. Fixes https://gitlab.com/kicad/code/kicad/issues/13262
This commit is contained in:
parent
13d196c509
commit
375fdb7a49
@ -371,8 +371,8 @@ wxString DRC_TEST_PROVIDER::formatMsg( const wxString& aFormatString, const wxSt
|
|||||||
if( constraint_str == actual_str )
|
if( constraint_str == actual_str )
|
||||||
{
|
{
|
||||||
// Use more precise formatting if the message-text strings were equal.
|
// Use more precise formatting if the message-text strings were equal.
|
||||||
constraint_str = StringFromValue( aConstraint );
|
constraint_str = StringFromValue( aConstraint, true );
|
||||||
actual_str = StringFromValue( aActual );
|
actual_str = StringFromValue( aActual, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
return wxString::Format( aFormatString, aSource, constraint_str, actual_str );
|
return wxString::Format( aFormatString, aSource, constraint_str, actual_str );
|
||||||
|
@ -102,6 +102,10 @@ bool DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge( BOARD_ITEM* item, SHAPE*
|
|||||||
{
|
{
|
||||||
if( itemShape->Collide( shape.get(), minClearance, &actual, &pos ) )
|
if( itemShape->Collide( shape.get(), minClearance, &actual, &pos ) )
|
||||||
{
|
{
|
||||||
|
// Exact clearance is allowed
|
||||||
|
if( minClearance > 0 && actual == minClearance )
|
||||||
|
return true;
|
||||||
|
|
||||||
if( item->Type() == PCB_TRACE_T || item->Type() == PCB_ARC_T )
|
if( item->Type() == PCB_TRACE_T || item->Type() == PCB_ARC_T )
|
||||||
{
|
{
|
||||||
// Edge collisions are allowed inside the holes of castellated pads
|
// Edge collisions are allowed inside the holes of castellated pads
|
||||||
|
Loading…
x
Reference in New Issue
Block a user