Commit b6495787 authored by Maciej Suminski's avatar Maciej Suminski

FIxed invisible layers problem after changing the number of layers (GAL).

parent 84a985f8
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <kiface_i.h> #include <kiface_i.h>
#include <project.h> #include <project.h>
#include <class_drawpanel.h> #include <class_drawpanel.h>
#include <class_draw_panel_gal.h> #include <pcb_draw_panel_gal.h>
#include <confirm.h> #include <confirm.h>
#include <gestfich.h> #include <gestfich.h>
#include <xnode.h> #include <xnode.h>
...@@ -106,6 +106,9 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event ) ...@@ -106,6 +106,9 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event )
OnModify(); OnModify();
ReCreateLayerBox(); ReCreateLayerBox();
ReFillLayerWidget(); ReFillLayerWidget();
if( IsGalCanvasActive() )
static_cast<PCB_DRAW_PANEL_GAL*>( GetGalCanvas() )->SyncLayersVisibility( GetBoard() );
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment