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
f5fd471d
Commit
f5fd471d
authored
Nov 13, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix Bug #1392087 ( adhesive layer plot broken ).
parent
1aec1f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
plot_board_layers.cpp
pcbnew/plot_board_layers.cpp
+22
-19
No files found.
pcbnew/plot_board_layers.cpp
View file @
f5fd471d
...
@@ -198,6 +198,8 @@ void PlotOneBoardLayer( BOARD *aBoard, PLOTTER* aPlotter, LAYER_ID aLayer,
...
@@ -198,6 +198,8 @@ void PlotOneBoardLayer( BOARD *aBoard, PLOTTER* aPlotter, LAYER_ID aLayer,
break
;
break
;
case
B_Adhes
:
case
F_Adhes
:
case
B_Paste
:
case
B_Paste
:
case
F_Paste
:
case
F_Paste
:
plotOpt
.
SetSkipPlotNPTH_Pads
(
false
);
plotOpt
.
SetSkipPlotNPTH_Pads
(
false
);
...
@@ -237,9 +239,28 @@ void PlotOneBoardLayer( BOARD *aBoard, PLOTTER* aPlotter, LAYER_ID aLayer,
...
@@ -237,9 +239,28 @@ void PlotOneBoardLayer( BOARD *aBoard, PLOTTER* aPlotter, LAYER_ID aLayer,
}
}
break
;
break
;
default:
// These layers are plotted like silk screen layers.
// Mainly, pads on these layers are not filled.
// This is not necessary the best choice.
case
Dwgs_User
:
case
Cmts_User
:
case
Eco1_User
:
case
Eco2_User
:
case
Edge_Cuts
:
case
Margin
:
case
F_CrtYd
:
case
B_CrtYd
:
case
F_Fab
:
case
B_Fab
:
PlotSilkScreen
(
aBoard
,
aPlotter
,
layer_mask
,
plotOpt
);
PlotSilkScreen
(
aBoard
,
aPlotter
,
layer_mask
,
plotOpt
);
break
;
break
;
default:
if
(
plotOpt
.
GetFormat
()
==
PLOT_FORMAT_DXF
)
PlotLayerOutlines
(
aBoard
,
aPlotter
,
layer_mask
,
plotOpt
);
else
PlotSilkScreen
(
aBoard
,
aPlotter
,
layer_mask
,
plotOpt
);
break
;
}
}
}
}
}
}
...
@@ -306,23 +327,6 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
...
@@ -306,23 +327,6 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
if
(
(
aLayerMask
&
LSET
::
AllCuMask
()
).
any
()
)
if
(
(
aLayerMask
&
LSET
::
AllCuMask
()
).
any
()
)
width_adj
=
itemplotter
.
getFineWidthAdj
();
width_adj
=
itemplotter
.
getFineWidthAdj
();
#if 0 // was:
switch( aLayerMask &
( SOLDERMASK_LAYER_BACK | SOLDERMASK_LAYER_FRONT |
SOLDERPASTE_LAYER_BACK | SOLDERPASTE_LAYER_FRONT ) )
{
case SOLDERMASK_LAYER_FRONT:
case SOLDERMASK_LAYER_BACK:
break;
case SOLDERPASTE_LAYER_FRONT:
case SOLDERPASTE_LAYER_BACK:
break;
default:
break;
}
#else
static
const
LSET
speed
(
4
,
B_Mask
,
F_Mask
,
B_Paste
,
F_Paste
);
static
const
LSET
speed
(
4
,
B_Mask
,
F_Mask
,
B_Paste
,
F_Paste
);
LSET
anded
=
(
speed
&
aLayerMask
);
LSET
anded
=
(
speed
&
aLayerMask
);
...
@@ -335,7 +339,6 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
...
@@ -335,7 +339,6 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
{
{
margin
=
pad
->
GetSolderPasteMargin
();
margin
=
pad
->
GetSolderPasteMargin
();
}
}
#endif
wxSize
padPlotsSize
;
wxSize
padPlotsSize
;
padPlotsSize
.
x
=
pad
->
GetSize
().
x
+
(
2
*
margin
.
x
)
+
width_adj
;
padPlotsSize
.
x
=
pad
->
GetSize
().
x
+
(
2
*
margin
.
x
)
+
width_adj
;
...
...
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