Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6d088b43
Commit
6d088b43
authored
Apr 04, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setting active layer in PAINTER's render settings according to the PCB layer widget.
parent
ccc0fb06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
class_pcb_layer_widget.cpp
pcbnew/class_pcb_layer_widget.cpp
+13
-1
No files found.
pcbnew/class_pcb_layer_widget.cpp
View file @
6d088b43
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment