Remove broken RefreshRect; it doesn't seem to add much
This commit is contained in:
parent
5e2946ef90
commit
eda0f1a27f
|
@ -581,11 +581,7 @@ void APPEARANCE_CONTROLS::OnNetGridClick( wxGridEvent& event )
|
||||||
{
|
{
|
||||||
case NET_GRID_TABLE::COL_VISIBILITY:
|
case NET_GRID_TABLE::COL_VISIBILITY:
|
||||||
m_netsTable->SetValueAsBool( row, col, !m_netsTable->GetValueAsBool( row, col ) );
|
m_netsTable->SetValueAsBool( row, col, !m_netsTable->GetValueAsBool( row, col ) );
|
||||||
#ifdef __WXMSW__
|
|
||||||
m_netsGrid->ForceRefresh();
|
m_netsGrid->ForceRefresh();
|
||||||
#else
|
|
||||||
m_netsGrid->RefreshRect( m_netsGrid->CellToRect( row, col ) );
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -2123,15 +2119,7 @@ void APPEARANCE_CONTROLS::showNetclass( const wxString& aClassName, bool aShow )
|
||||||
int row = m_netsTable->GetRowByNetcode( net->GetNet() );
|
int row = m_netsTable->GetRowByNetcode( net->GetNet() );
|
||||||
|
|
||||||
if( row >= 0 )
|
if( row >= 0 )
|
||||||
{
|
|
||||||
m_netsTable->SetValueAsBool( row, NET_GRID_TABLE::COL_VISIBILITY, aShow );
|
m_netsTable->SetValueAsBool( row, NET_GRID_TABLE::COL_VISIBILITY, aShow );
|
||||||
#ifdef __WXMSW__
|
|
||||||
m_netsGrid->ForceRefresh();
|
|
||||||
#else
|
|
||||||
m_netsGrid->RefreshRect(
|
|
||||||
m_netsGrid->CellToRect( row, NET_GRID_TABLE::COL_VISIBILITY ) );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2149,18 +2137,12 @@ void APPEARANCE_CONTROLS::showNetclass( const wxString& aClassName, bool aShow )
|
||||||
int row = m_netsTable->GetRowByNetcode( code );
|
int row = m_netsTable->GetRowByNetcode( code );
|
||||||
|
|
||||||
if( row >= 0 )
|
if( row >= 0 )
|
||||||
{
|
|
||||||
m_netsTable->SetValueAsBool( row, NET_GRID_TABLE::COL_VISIBILITY, aShow );
|
m_netsTable->SetValueAsBool( row, NET_GRID_TABLE::COL_VISIBILITY, aShow );
|
||||||
#ifdef __WXMSW__
|
|
||||||
m_netsGrid->ForceRefresh();
|
|
||||||
#else
|
|
||||||
m_netsGrid->RefreshRect(
|
|
||||||
m_netsGrid->CellToRect( row, NET_GRID_TABLE::COL_VISIBILITY ) );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_netsGrid->ForceRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue