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
1eb6220a
Commit
1eb6220a
authored
Nov 09, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gerbview cleanup, and working towards aperture macro support
parent
26736baa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rs274d.cpp
gerbview/rs274d.cpp
+4
-4
No files found.
gerbview/rs274d.cpp
View file @
1eb6220a
...
@@ -645,7 +645,7 @@ bool GERBER::Execute_G_Command( char*& text, int G_commande )
...
@@ -645,7 +645,7 @@ bool GERBER::Execute_G_Command( char*& text, int G_commande )
if
(
D_commande
>
(
MAX_TOOLS
-
1
)
)
if
(
D_commande
>
(
MAX_TOOLS
-
1
)
)
D_commande
=
MAX_TOOLS
-
1
;
D_commande
=
MAX_TOOLS
-
1
;
m_Current_Tool
=
D_commande
;
m_Current_Tool
=
D_commande
;
D_CODE
*
pt_Dcode
=
ReturnToolDescr
(
m_Layer
,
D_command
e
);
D_CODE
*
pt_Dcode
=
GetDCODE
(
D_commande
,
fals
e
);
if
(
pt_Dcode
)
if
(
pt_Dcode
)
pt_Dcode
->
m_InUse
=
TRUE
;
pt_Dcode
->
m_InUse
=
TRUE
;
break
;
break
;
...
@@ -716,7 +716,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
...
@@ -716,7 +716,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
if
(
D_commande
>
(
MAX_TOOLS
-
1
)
)
if
(
D_commande
>
(
MAX_TOOLS
-
1
)
)
D_commande
=
MAX_TOOLS
-
1
;
D_commande
=
MAX_TOOLS
-
1
;
m_Current_Tool
=
D_commande
;
m_Current_Tool
=
D_commande
;
D_CODE
*
pt_Dcode
=
ReturnToolDescr
(
m_Layer
,
D_command
e
);
D_CODE
*
pt_Dcode
=
GetDCODE
(
D_commande
,
fals
e
);
if
(
pt_Dcode
)
if
(
pt_Dcode
)
pt_Dcode
->
m_InUse
=
TRUE
;
pt_Dcode
->
m_InUse
=
TRUE
;
return
TRUE
;
return
TRUE
;
...
@@ -768,7 +768,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
...
@@ -768,7 +768,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
switch
(
D_commande
)
switch
(
D_commande
)
{
{
case
1
:
//code D01 Draw line, exposure ON
case
1
:
//code D01 Draw line, exposure ON
pt_Tool
=
ReturnToolDescr
(
m_Layer
,
m_Current_Tool
);
pt_Tool
=
GetDCODE
(
m_Current_Tool
,
false
);
if
(
pt_Tool
)
if
(
pt_Tool
)
{
{
size
=
pt_Tool
->
m_Size
;
size
=
pt_Tool
->
m_Size
;
...
@@ -820,7 +820,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
...
@@ -820,7 +820,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, wxDC* DC,
break
;
break
;
case
3
:
// code D3: flash aperture
case
3
:
// code D3: flash aperture
pt_Tool
=
ReturnToolDescr
(
m_Layer
,
m_Current_Tool
);
pt_Tool
=
GetDCODE
(
m_Current_Tool
,
false
);
if
(
pt_Tool
)
if
(
pt_Tool
)
{
{
size
=
pt_Tool
->
m_Size
;
size
=
pt_Tool
->
m_Size
;
...
...
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