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
9e6ed2b7
Commit
9e6ed2b7
authored
Nov 12, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema plot: fix Bug #1391538 (eeschema PS/PDF export, objects have wrong Z-order )
parent
1188cd43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
class_libentry.cpp
eeschema/class_libentry.cpp
+22
-2
No files found.
eeschema/class_libentry.cpp
View file @
9e6ed2b7
...
...
@@ -413,9 +413,11 @@ void LIB_PART::Plot( PLOTTER* aPlotter, int aUnit, int aConvert,
aPlotter
->
SetColor
(
GetLayerColor
(
LAYER_DEVICE
)
);
bool
fill
=
aPlotter
->
GetColorMode
();
// draw background for filled items using background option
// Solid lines will be drawn after the background
BOOST_FOREACH
(
LIB_ITEM
&
item
,
drawings
)
{
// Lib Fields
not are
plotted here, because this plot function
// Lib Fields
are not
plotted here, because this plot function
// is used to plot schematic items, which have they own fields
if
(
item
.
Type
()
==
LIB_FIELD_T
)
continue
;
...
...
@@ -426,6 +428,24 @@ void LIB_PART::Plot( PLOTTER* aPlotter, int aUnit, int aConvert,
if
(
aConvert
&&
item
.
m_Convert
&&
(
item
.
m_Convert
!=
aConvert
)
)
continue
;
if
(
item
.
m_Fill
==
FILLED_WITH_BG_BODYCOLOR
)
item
.
Plot
(
aPlotter
,
aOffset
,
fill
,
aTransform
);
}
// Not filled items and filled shapes are now plotted
// (plot only items which are not already plotted)
BOOST_FOREACH
(
LIB_ITEM
&
item
,
drawings
)
{
if
(
item
.
Type
()
==
LIB_FIELD_T
)
continue
;
if
(
aUnit
&&
item
.
m_Unit
&&
(
item
.
m_Unit
!=
aUnit
)
)
continue
;
if
(
aConvert
&&
item
.
m_Convert
&&
(
item
.
m_Convert
!=
aConvert
)
)
continue
;
if
(
item
.
m_Fill
!=
FILLED_WITH_BG_BODYCOLOR
)
item
.
Plot
(
aPlotter
,
aOffset
,
fill
,
aTransform
);
}
}
...
...
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