Faster layer visibility switching in GAL
Fixes: lp:1623055 * https://bugs.launchpad.net/kicad/+bug/1623055
This commit is contained in:
parent
f78721b451
commit
104a066268
|
@ -467,11 +467,7 @@ void PCB_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFinal
|
|||
EDA_DRAW_PANEL_GAL* galCanvas = myframe->GetGalCanvas();
|
||||
|
||||
if( galCanvas )
|
||||
{
|
||||
KIGFX::VIEW* view = galCanvas->GetView();
|
||||
view->SetLayerVisible( aLayer, isVisible );
|
||||
view->RecacheAllItems();
|
||||
}
|
||||
galCanvas->GetView()->SetLayerVisible( aLayer, isVisible );
|
||||
|
||||
if( isFinal )
|
||||
myframe->GetCanvas()->Refresh();
|
||||
|
|
Loading…
Reference in New Issue