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
40b40ea5
Commit
40b40ea5
authored
Sep 29, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an issue in Gerbview
parent
46b57190
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
class_gerber_draw_item.h
gerbview/class_gerber_draw_item.h
+0
-1
deltrack.cpp
gerbview/deltrack.cpp
+1
-1
export_to_pcbnew.cpp
gerbview/export_to_pcbnew.cpp
+1
-1
initpcb.cpp
gerbview/initpcb.cpp
+4
-1
No files found.
gerbview/class_gerber_draw_item.h
View file @
40b40ea5
...
...
@@ -57,7 +57,6 @@ private:
public
:
int
m_Layer
;
int
m_Shape
;
// Shape and type of this gerber item
wxPoint
m_Start
;
// Line or arc start point or position of the shape
// for flashed items
...
...
gerbview/deltrack.cpp
View file @
40b40ea5
...
...
@@ -27,7 +27,7 @@ void WinEDA_GerberFrame::Delete_DCode_Items( wxDC* DC,
if
(
dcode_value
!=
gerb_item
->
m_DCode
)
continue
;
if
(
layer_number
>=
0
&&
layer_number
!=
gerb_item
->
m_Layer
)
if
(
layer_number
>=
0
&&
layer_number
!=
gerb_item
->
GetLayer
()
)
continue
;
// TODO: Delete_Item( DC, item );
...
...
gerbview/export_to_pcbnew.cpp
View file @
40b40ea5
...
...
@@ -140,7 +140,7 @@ static int SavePcbFormatAscii( WinEDA_GerberFrame* frame, FILE* aFile,
for
(
;
item
;
item
=
item
->
Next
()
)
{
GERBER_DRAW_ITEM
*
gerb_item
=
(
GERBER_DRAW_ITEM
*
)
item
;
int
layer
=
gerb_item
->
m_Layer
;
int
layer
=
gerb_item
->
GetLayer
()
;
int
pcb_layer_number
=
LayerLookUpTable
[
layer
];
if
(
pcb_layer_number
<
0
||
pcb_layer_number
>
LAST_NO_COPPER_LAYER
)
continue
;
...
...
gerbview/initpcb.cpp
View file @
40b40ea5
...
...
@@ -62,11 +62,14 @@ void WinEDA_GerberFrame::Erase_Current_Layer( bool query )
{
next
=
item
->
Next
();
GERBER_DRAW_ITEM
*
gerb_item
=
(
GERBER_DRAW_ITEM
*
)
item
;
if
(
gerb_item
->
m_Layer
!=
layer
)
if
(
gerb_item
->
GetLayer
()
!=
layer
)
continue
;
gerb_item
->
DeleteStructure
();
}
if
(
g_GERBER_List
[
layer
]
)
g_GERBER_List
[
layer
]
->
InitToolTable
();
ScreenPcb
->
SetModify
();
ScreenPcb
->
SetRefreshReq
();
}
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