Switching top layer should update the layer widget

This commit is contained in:
Tomasz Włostowski 2014-05-14 13:54:59 +02:00
parent dd5558f653
commit e9afb10a9d
1 changed files with 2 additions and 2 deletions

View File

@ -591,6 +591,7 @@ void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event )
void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
{
m_canvas->SetAbortRequest( true );
GetGalCanvas()->StopDrawing();
if( GetScreen()->IsModify() )
{
@ -614,8 +615,6 @@ void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
}
}
GetGalCanvas()->StopDrawing();
// Delete the auto save file if it exists.
wxFileName fn = GetBoard()->GetFileName();
@ -914,6 +913,7 @@ void PCB_EDIT_FRAME::SetActiveLayer( LAYER_NUM aLayer, bool doLayerWidgetUpdate
( (PCB_SCREEN*) GetScreen() )->m_Active_Layer = aLayer;
SetHighContrastLayer( aLayer );
SetTopLayer( aLayer );
if( doLayerWidgetUpdate )
syncLayerWidgetLayer();