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
44e1f4fa
Commit
44e1f4fa
authored
Mar 28, 2014
by
cdelbegu
Committed by
jean-pierre charras
Mar 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew - GAL: fix bug #1296811 (The grid can't be enable/disable via the layer manager)
parent
47b5bdcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
class_pcb_layer_widget.cpp
pcbnew/class_pcb_layer_widget.cpp
+9
-2
No files found.
pcbnew/class_pcb_layer_widget.cpp
View file @
44e1f4fa
...
...
@@ -49,6 +49,8 @@
#include <collectors.h>
#include <pcbnew_id.h>
#include <gal/graphics_abstraction_layer.h>
/// This is a read only template that is copied and modified before adding to LAYER_WIDGET
const
LAYER_WIDGET
::
ROW
PCB_LAYER_WIDGET
::
s_render_rows
[]
=
{
...
...
@@ -420,8 +422,13 @@ void PCB_LAYER_WIDGET::OnRenderEnable( int aId, bool isEnabled )
EDA_DRAW_PANEL_GAL
*
galCanvas
=
myframe
->
GetGalCanvas
();
if
(
galCanvas
)
{
KIGFX
::
VIEW
*
view
=
galCanvas
->
GetView
();
view
->
SetLayerVisible
(
ITEM_GAL_LAYER
(
aId
),
isEnabled
);
if
(
aId
==
GRID_VISIBLE
)
{
galCanvas
->
GetGAL
()
->
SetGridVisibility
(
myframe
->
IsGridVisible
()
);
galCanvas
->
GetView
()
->
MarkTargetDirty
(
KIGFX
::
TARGET_NONCACHED
);
}
else
galCanvas
->
GetView
()
->
SetLayerVisible
(
ITEM_GAL_LAYER
(
aId
),
isEnabled
);
}
if
(
galCanvas
&&
myframe
->
IsGalCanvasActive
()
)
...
...
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