Fix potential issue
This commit is contained in:
parent
f2e75c96be
commit
fda403a079
|
@ -66,7 +66,7 @@ bool BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode, bool aNoAssert )
|
|||
m_netinfo = &NETINFO_LIST::ORPHANED_ITEM;
|
||||
|
||||
if( !aNoAssert )
|
||||
assert( m_netinfo );
|
||||
wxASSERT( m_netinfo );
|
||||
|
||||
// Add only if it was previously added to the ratsnest
|
||||
//if( addRatsnest )
|
||||
|
|
|
@ -74,8 +74,11 @@ ZONE_CONTAINER::ZONE_CONTAINER( BOARD* aBoard ) :
|
|||
ZONE_CONTAINER::ZONE_CONTAINER( const ZONE_CONTAINER& aZone ) :
|
||||
BOARD_CONNECTED_ITEM( aZone )
|
||||
{
|
||||
// Should the copy be on the same net?
|
||||
m_isKeepout = aZone.m_isKeepout;
|
||||
SetLayerSet( aZone.GetLayerSet() );
|
||||
|
||||
SetNetCode( aZone.GetNetCode() );
|
||||
|
||||
m_Poly = new SHAPE_POLY_SET( *aZone.m_Poly );
|
||||
|
||||
// For corner moving, corner index to drag, or nullptr if no selection
|
||||
|
@ -93,7 +96,6 @@ ZONE_CONTAINER::ZONE_CONTAINER( const ZONE_CONTAINER& aZone ) :
|
|||
m_FilledPolysList.Append( aZone.m_FilledPolysList );
|
||||
m_FillSegmList = aZone.m_FillSegmList; // vector <> copy
|
||||
|
||||
m_isKeepout = aZone.m_isKeepout;
|
||||
m_doNotAllowCopperPour = aZone.m_doNotAllowCopperPour;
|
||||
m_doNotAllowVias = aZone.m_doNotAllowVias;
|
||||
m_doNotAllowTracks = aZone.m_doNotAllowTracks;
|
||||
|
@ -105,7 +107,6 @@ ZONE_CONTAINER::ZONE_CONTAINER( const ZONE_CONTAINER& aZone ) :
|
|||
m_hatchPitch = aZone.m_hatchPitch;
|
||||
m_HatchLines = aZone.m_HatchLines;
|
||||
|
||||
SetLayerSet( aZone.GetLayerSet() );
|
||||
SetLocalFlags( aZone.GetLocalFlags() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue