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
39ba8945
Commit
39ba8945
authored
Nov 14, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
append before modify
parent
2d76ea59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
rs274x.cpp
gerbview/rs274x.cpp
+10
-9
No files found.
gerbview/rs274x.cpp
View file @
39ba8945
...
...
@@ -536,7 +536,7 @@ bool GetEndOfBlock( char buff[GERBER_BUFZ], char*& text, FILE* gerber_file )
bool
GERBER
::
ReadApertureMacro
(
char
buff
[
GERBER_BUFZ
],
char
*&
text
,
FILE
*
gerber_file
)
/*******************************************************************/
{
APERTURE_MACRO
am
;
APERTURE_MACRO
am
;
// read macro name
while
(
*
text
)
...
...
@@ -555,7 +555,9 @@ bool GERBER::ReadApertureMacro( char buff[GERBER_BUFZ], char*& text, FILE* gerbe
for
(;;)
{
AM_PRIMITIVE
prim
;
am
.
primitives
.
push_back
(
AM_PRIMITIVE
()
);
AM_PRIMITIVE
&
prim
=
am
.
primitives
.
back
();
if
(
*
text
==
'*'
)
++
text
;
...
...
@@ -613,7 +615,9 @@ bool GERBER::ReadApertureMacro( char buff[GERBER_BUFZ], char*& text, FILE* gerbe
for
(
int
i
=
0
;
i
<
paramCount
&&
*
text
&&
*
text
!=
'*'
;
++
i
)
{
DCODE_PARAM
param
;
// construct it on each loop iteration
prim
.
params
.
push_back
(
DCODE_PARAM
()
);
DCODE_PARAM
&
param
=
prim
.
params
.
back
();
if
(
*
text
==
'$'
)
{
...
...
@@ -622,8 +626,6 @@ bool GERBER::ReadApertureMacro( char buff[GERBER_BUFZ], char*& text, FILE* gerbe
}
else
param
.
SetValue
(
ReadDouble
(
text
)
);
prim
.
params
.
push_back
(
param
);
}
// there are more parameters to read if this is an AMP_OUTLINE
...
...
@@ -637,7 +639,9 @@ bool GERBER::ReadApertureMacro( char buff[GERBER_BUFZ], char*& text, FILE* gerbe
for
(
int
i
=
0
;
i
<
paramCount
&&
*
text
&&
*
text
!=
'*'
;
++
i
)
{
DCODE_PARAM
param
;
// construct it on each loop
prim
.
params
.
push_back
(
DCODE_PARAM
()
);
DCODE_PARAM
&
param
=
prim
.
params
.
back
();
if
(
*
text
==
'$'
)
{
...
...
@@ -647,11 +651,8 @@ bool GERBER::ReadApertureMacro( char buff[GERBER_BUFZ], char*& text, FILE* gerbe
else
param
.
SetValue
(
ReadDouble
(
text
)
);
prim
.
params
.
push_back
(
param
);
}
}
am
.
primitives
.
push_back
(
prim
);
}
m_aperture_macros
.
insert
(
am
);
...
...
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