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
c20d9b93
Commit
c20d9b93
authored
Jul 01, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugs in plot functions (bad document size in PS header and junction size) fixed
parent
aa509dda
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
common_plotPS_functions.cpp
common/common_plotPS_functions.cpp
+4
-2
plot.cpp
eeschema/plot.cpp
+1
-1
No files found.
common/common_plotPS_functions.cpp
View file @
c20d9b93
...
...
@@ -307,6 +307,8 @@ void PS_Plotter::start_plot( FILE *fout)
//
// (NOTE: m_Size.y is *supposed* to be listed before m_Size.x;
// the order in which they are specified is not wrong!)
// Also note sheet->m_Size is given in mils, not in decimils and must be
// sheet->m_Size * 10 in decimils
if
(
sheet
->
m_Name
.
Cmp
(
wxT
(
"User"
)
)
==
0
)
fprintf
(
output_file
,
"%%%%DocumentMedia: Custom %d %d 0 () ()
\n
"
,
wxRound
(
sheet
->
m_Size
.
y
*
CONV_SCALE
),
...
...
@@ -315,8 +317,8 @@ void PS_Plotter::start_plot( FILE *fout)
else
// ( if sheet->m_Name does not equal "User" )
fprintf
(
output_file
,
"%%%%DocumentMedia: %s %d %d 0 () ()
\n
"
,
CONV_TO_UTF8
(
sheet
->
m_Name
),
wxRound
(
sheet
->
m_Size
.
y
*
CONV_SCALE
),
wxRound
(
sheet
->
m_Size
.
x
*
CONV_SCALE
)
);
wxRound
(
sheet
->
m_Size
.
y
*
10
*
CONV_SCALE
),
wxRound
(
sheet
->
m_Size
.
x
*
10
*
CONV_SCALE
)
);
fprintf
(
output_file
,
"%%%%Orientation: Landscape
\n
"
);
...
...
eeschema/plot.cpp
View file @
c20d9b93
...
...
@@ -747,7 +747,7 @@ void PlotDrawlist( Plotter* plotter, SCH_ITEM* aDrawlist )
#undef STRUCT
#define STRUCT ( (DrawJunctionStruct*) aDrawlist )
plotter
->
set_color
(
ReturnLayerColor
(
STRUCT
->
GetLayer
()
)
);
plotter
->
circle
(
STRUCT
->
m_Pos
,
DRAWJUNCTION_SIZE
,
FILLED_SHAPE
);
plotter
->
circle
(
STRUCT
->
m_Pos
,
DRAWJUNCTION_SIZE
*
2
,
FILLED_SHAPE
);
break
;
case
TYPE_SCH_TEXT
:
...
...
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