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
55526a10
Commit
55526a10
authored
Feb 20, 2013
by
Baranovskiy Konstantin
Committed by
Wayne Stambaugh
Feb 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DXF plot layer color bug fix. (fixes lp:1126403)
parent
ee2ed120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
common_plotDXF_functions.cpp
common/common_plotDXF_functions.cpp
+27
-26
No files found.
common/common_plotDXF_functions.cpp
View file @
55526a10
...
@@ -171,30 +171,30 @@ bool DXF_PLOTTER::StartPlot()
...
@@ -171,30 +171,30 @@ bool DXF_PLOTTER::StartPlot()
const
char
*
name
;
const
char
*
name
;
int
color
;
int
color
;
}
dxf_layer
[
NBCOLOR
]
=
{
}
dxf_layer
[
NBCOLOR
]
=
{
{
"B
lack
"
,
250
},
{
"B
LACK
"
,
250
},
{
"B
lue
"
,
5
},
{
"B
LUE
"
,
5
},
{
"G
reen
"
,
3
},
{
"G
REEN
"
,
3
},
{
"C
yan
"
,
4
},
{
"C
YAN
"
,
4
},
{
"R
ed
"
,
1
},
{
"R
ED
"
,
1
},
{
"M
agenta
"
,
6
},
{
"M
AGENTA
"
,
6
},
{
"B
rown
"
,
54
},
{
"B
ROWN
"
,
54
},
{
"L
ightGray
"
,
9
},
{
"L
IGHTGRAY
"
,
9
},
{
"D
arkGray
"
,
8
},
{
"D
ARKGRAY
"
,
8
},
{
"L
ightBlue
"
,
171
},
{
"L
IGHTBLUE
"
,
171
},
{
"L
ightGreen
"
,
91
},
{
"L
IGHTGREEN
"
,
91
},
{
"L
ightCyan
"
,
131
},
{
"L
IGHTCYAN
"
,
131
},
{
"L
ightRed
"
,
11
},
{
"L
IGHTRED
"
,
11
},
{
"L
ightMagenta
"
,
221
},
{
"L
IGHTMAGENTA
"
,
221
},
{
"Y
ellow
"
,
2
},
{
"Y
ELLOW
"
,
2
},
{
"W
hite
"
,
7
},
{
"W
HITE
"
,
7
},
{
"D
arkDarkGray
"
,
251
},
{
"D
ARKDARKGRAY
"
,
251
},
{
"D
arkBlue
"
,
178
},
{
"D
ARKBLUE
"
,
178
},
{
"D
arkGreen
"
,
98
},
{
"D
ARKGREEN
"
,
98
},
{
"D
arkCyan
"
,
138
},
{
"D
ARKCYAN
"
,
138
},
{
"D
arkRed
"
,
18
},
{
"D
ARKRED
"
,
18
},
{
"D
arkMagenta
"
,
228
},
{
"D
ARKMAGENTA
"
,
228
},
{
"D
arkBrown
"
,
58
},
{
"D
ARKBROWN
"
,
58
},
{
"L
ightYellow
"
,
51
},
{
"L
IGHTYELLOW
"
,
51
},
};
};
for
(
int
i
=
0
;
i
<
NBCOLOR
;
i
++
)
for
(
int
i
=
0
;
i
<
NBCOLOR
;
i
++
)
...
@@ -256,6 +256,8 @@ void DXF_PLOTTER::SetColor( EDA_COLOR_T color )
...
@@ -256,6 +256,8 @@ void DXF_PLOTTER::SetColor( EDA_COLOR_T color )
{
{
currentColor
=
color
;
currentColor
=
color
;
}
}
else
currentColor
=
BLACK
;
}
}
/**
/**
...
@@ -567,8 +569,7 @@ void DXF_PLOTTER::Text( const wxPoint& aPos,
...
@@ -567,8 +569,7 @@ void DXF_PLOTTER::Text( const wxPoint& aPos,
/* Emit text as a text entity. This loses formatting and shape but it's
/* Emit text as a text entity. This loses formatting and shape but it's
more useful as a CAD object */
more useful as a CAD object */
DPOINT
origin_dev
=
userToDeviceCoordinates
(
aPos
);
DPOINT
origin_dev
=
userToDeviceCoordinates
(
aPos
);
if
(
aColor
>=
0
)
SetColor
(
aColor
);
currentColor
=
aColor
;
wxString
cname
=
ColorRefs
[
currentColor
].
m_Name
;
wxString
cname
=
ColorRefs
[
currentColor
].
m_Name
;
DPOINT
size_dev
=
userToDeviceSize
(
aSize
);
DPOINT
size_dev
=
userToDeviceSize
(
aSize
);
int
h_code
=
0
,
v_code
=
0
;
int
h_code
=
0
,
v_code
=
0
;
...
...
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