Commit 6d088b43 authored by Maciej Suminski's avatar Maciej Suminski

Added setting active layer in PAINTER's render settings according to the PCB layer widget.

parent ccc0fb06
......@@ -34,6 +34,7 @@
#ifdef KICAD_GAL
#include <class_drawpanel_gal.h>
#include <view/view.h>
#include <painter.h>
#endif
#include <confirm.h>
#include <wxPcbStruct.h>
......@@ -342,8 +343,19 @@ bool PCB_LAYER_WIDGET::OnLayerSelect( int aLayer )
// false from this function.
myframe->setActiveLayer( aLayer, false );
#ifdef KICAD_GAL
myframe->GetGalCanvas()->GetView()->GetPainter()->GetSettings()->SetActiveLayer( aLayer );
#endif /* KICAD_GAL */
if(DisplayOpt.ContrastModeDisplay)
{
#ifdef KICAD_GAL
if( myframe->IsGalCanvasActive() )
myframe->GetGalCanvas()->Refresh();
else
#endif
myframe->GetCanvas()->Refresh();
}
return true;
}
......
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