Faster layer visibility switching in GAL

Fixes: lp:1623055
* https://bugs.launchpad.net/kicad/+bug/1623055
This commit is contained in:
Tomasz Wlostowski 2016-09-14 11:57:03 +02:00 committed by Maciej Suminski
parent f78721b451
commit 104a066268
1 changed files with 1 additions and 5 deletions

View File

@ -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();