Fix comment.
This commit is contained in:
parent
133772e964
commit
d5e982897c
|
@ -629,21 +629,16 @@ bool ZONE_CONTAINER::HitTest( const EDA_RECT& aRect, bool aContained, int aAccur
|
||||||
|
|
||||||
int ZONE_CONTAINER::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const
|
int ZONE_CONTAINER::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const
|
||||||
{
|
{
|
||||||
int myClearance = m_ZoneClearance;
|
int myClearance = m_ZoneClearance;
|
||||||
|
|
||||||
#if 1 // Maybe the netclass clearance should not come into play for a zone?
|
// The actual zone clearance is the biggest of the zone netclass clearance
|
||||||
// At least the policy decision can be controlled by the zone
|
// and the zone clearance setting in the zone properties dialog.
|
||||||
// itself, i.e. here. On reasons of insufficient documentation,
|
NETCLASSPTR myClass = GetNetClass();
|
||||||
// the user will be less bewildered if we simply respect the
|
|
||||||
// "zone clearance" setting in the zone properties dialog. (At least
|
|
||||||
// until there is a UI boolean for this.)
|
|
||||||
|
|
||||||
NETCLASSPTR myClass = GetNetClass();
|
|
||||||
|
|
||||||
if( myClass )
|
if( myClass )
|
||||||
myClearance = std::max( myClearance, myClass->GetClearance() );
|
myClearance = std::max( myClearance, myClass->GetClearance() );
|
||||||
#endif
|
|
||||||
|
|
||||||
|
// Get the final clearance between me and aItem
|
||||||
if( aItem )
|
if( aItem )
|
||||||
{
|
{
|
||||||
int hisClearance = aItem->GetClearance( NULL );
|
int hisClearance = aItem->GetClearance( NULL );
|
||||||
|
|
Loading…
Reference in New Issue