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
de65a7a1
Commit
de65a7a1
authored
Dec 18, 2013
by
Baranovskiy Konstantin
Committed by
Wayne Stambaugh
Dec 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix border and title block line thickness plotting bug. (fixes lp:1261899)
parent
51d97658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
common_plot_functions.cpp
common/common_plot_functions.cpp
+10
-3
No files found.
common/common_plot_functions.cpp
View file @
de65a7a1
...
...
@@ -81,7 +81,6 @@ void PlotWorkSheet( PLOTTER* plotter, const TITLE_BLOCK& aTitleBlock,
EDA_COLOR_T
plotColor
=
plotter
->
GetColorMode
()
?
RED
:
BLACK
;
plotter
->
SetColor
(
plotColor
);
plotter
->
SetCurrentLineWidth
(
PLOTTER
::
DEFAULT_LINE_WIDTH
);
WS_DRAW_ITEM_LIST
drawList
;
// Print only a short filename, if aFilename is the full filename
...
...
@@ -103,11 +102,14 @@ void PlotWorkSheet( PLOTTER* plotter, const TITLE_BLOCK& aTitleBlock,
for
(
WS_DRAW_ITEM_BASE
*
item
=
drawList
.
GetFirst
();
item
;
item
=
drawList
.
GetNext
()
)
{
plotter
->
SetCurrentLineWidth
(
PLOTTER
::
DEFAULT_LINE_WIDTH
);
switch
(
item
->
GetType
()
)
{
case
WS_DRAW_ITEM_BASE
:
:
wsg_line
:
{
WS_DRAW_ITEM_LINE
*
line
=
(
WS_DRAW_ITEM_LINE
*
)
item
;
plotter
->
SetCurrentLineWidth
(
line
->
GetPenWidth
()
);
plotter
->
MoveTo
(
line
->
GetStart
()
);
plotter
->
FinishTo
(
line
->
GetEnd
()
);
}
...
...
@@ -116,7 +118,11 @@ void PlotWorkSheet( PLOTTER* plotter, const TITLE_BLOCK& aTitleBlock,
case
WS_DRAW_ITEM_BASE
:
:
wsg_rect
:
{
WS_DRAW_ITEM_RECT
*
rect
=
(
WS_DRAW_ITEM_RECT
*
)
item
;
plotter
->
Rect
(
rect
->
GetStart
(),
rect
->
GetEnd
(),
NO_FILL
);
}
plotter
->
Rect
(
rect
->
GetStart
(),
rect
->
GetEnd
(),
NO_FILL
,
rect
->
GetPenWidth
()
);
}
break
;
case
WS_DRAW_ITEM_BASE
:
:
wsg_text
:
...
...
@@ -135,7 +141,8 @@ void PlotWorkSheet( PLOTTER* plotter, const TITLE_BLOCK& aTitleBlock,
{
WS_DRAW_ITEM_POLYGON
*
poly
=
(
WS_DRAW_ITEM_POLYGON
*
)
item
;
plotter
->
PlotPoly
(
poly
->
m_Corners
,
poly
->
IsFilled
()
?
FILLED_SHAPE
:
NO_FILL
);
poly
->
IsFilled
()
?
FILLED_SHAPE
:
NO_FILL
,
poly
->
GetPenWidth
()
);
}
break
;
...
...
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