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
0c02dc07
Commit
0c02dc07
authored
Sep 24, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fixed 2 minor issues.
parent
cd778c12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
dialog_SVG_print.cpp
pcbnew/dialog_SVG_print.cpp
+4
-2
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+6
-2
No files found.
pcbnew/dialog_SVG_print.cpp
View file @
0c02dc07
...
...
@@ -219,8 +219,10 @@ void DIALOG_SVG_PRINT::PrintSVGDoc( bool aPrintAll, bool aPrint_Frame_Ref )
fn
.
SetName
(
fn
.
GetName
()
+
wxT
(
"-brd"
)
);
else
{
fn
.
SetName
(
fn
.
GetName
()
+
wxT
(
"-"
)
+
m_BoxSelectLayer
[
layer
]
->
GetLabel
()
);
wxString
extraname
=
m_BoxSelectLayer
[
layer
]
->
GetLabel
();
extraname
.
Trim
();
// remove leading and trailing spaces if any
extraname
.
Trim
(
false
);
fn
.
SetName
(
fn
.
GetName
()
+
wxT
(
"-"
)
+
extraname
);
m_PrintMaskLayer
=
1
<<
layer
;
if
(
m_PrintBoardEdgesCtrl
->
IsChecked
()
)
...
...
pcbnew/plot_rtn.cpp
View file @
0c02dc07
...
...
@@ -65,14 +65,18 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter,
Plot_Edges_Modules
(
plotter
,
m_Pcb
,
masque_layer
,
trace_mode
);
/* Plot pads (creates pads outlines, for pads on silkscreen layers) */
if
(
g_pcb_plot_options
.
PlotPadsOnSilkLayer
)
bool
layersmask_plotpads
=
masque_layer
;
// Calculate the mask layers of allowed layers for pads
if
(
!
g_pcb_plot_options
.
PlotPadsOnSilkLayer
)
layersmask_plotpads
&=
~
(
SILKSCREEN_LAYER_BACK
||
SILKSCREEN_LAYER_FRONT
);
if
(
layersmask_plotpads
)
{
for
(
MODULE
*
Module
=
m_Pcb
->
m_Modules
;
Module
;
Module
=
Module
->
Next
()
)
{
for
(
D_PAD
*
pad
=
Module
->
m_Pads
;
pad
!=
NULL
;
pad
=
pad
->
Next
()
)
{
/* See if the pad is on this layer */
if
(
(
pad
->
m_Masque_Layer
&
masque_layer
)
==
0
)
if
(
(
pad
->
m_Masque_Layer
&
layersmask_plotpads
)
==
0
)
continue
;
wxPoint
shape_pos
=
pad
->
ReturnShapePos
();
...
...
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