Performance enhancements.
Don't redraw all pads when active layer is set unless it has really changed.
This commit is contained in:
parent
8e70381be3
commit
7fb767653c
|
@ -971,6 +971,9 @@ void PCB_EDIT_FRAME::SetGridColor( COLOR4D aColor )
|
|||
|
||||
void PCB_EDIT_FRAME::SetActiveLayer( PCB_LAYER_ID aLayer )
|
||||
{
|
||||
if( GetActiveLayer() == aLayer )
|
||||
return;
|
||||
|
||||
PCB_BASE_FRAME::SetActiveLayer( aLayer );
|
||||
|
||||
m_appearancePanel->OnLayerChanged();
|
||||
|
|
Loading…
Reference in New Issue