fixed zone creation problem with DRC OFF and an other minor bug

This commit is contained in:
charras 2009-12-02 16:18:31 +00:00
parent 9886962177
commit 04c7eb2916
2 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ void WinEDA_BasePcbFrame::Build_Board_Ratsnest( wxDC* DC )
// erase the ratsnest displayed on screen if needed
for( unsigned ii = 0; ii < m_Pcb->GetRatsnestsCount(); ii++ )
{
if( !g_Show_Ratsnest && DC ) // Clear VISIBLE flag
if( !g_Show_Ratsnest ) // Clear VISIBLE flag
m_Pcb->m_FullRatsnest[ii].m_Status &= ~CH_VISIBLE;
if( DC )

View File

@ -598,7 +598,7 @@ int WinEDA_PcbFrame::Begin_Zone( wxDC* DC )
if( zone->GetCornerPosition( ii - 1 ) != zone->GetCornerPosition( ii ) )
{
if( (Drc_On && m_drc->Drc( zone, ii - 1 ) == OK_DRC)
|| !zone->IsOnCopperLayer() ) // Ok, we can add a new corner
|| !Drc_On || !zone->IsOnCopperLayer() ) // Ok, we can add a new corner
{
zone->AppendCorner( GetScreen()->m_Curseur );
SetCurItem( zone ); // calls DisplayInfo().