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
335f5a57
Commit
335f5a57
authored
Jun 06, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix an issue with very old .brd files.
parent
4121c272
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
dialog_drc.h
pcbnew/dialogs/dialog_drc.h
+0
-2
dialog_footprint_wizard_list.h
pcbnew/dialogs/dialog_footprint_wizard_list.h
+0
-1
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+13
-2
sel_layer.cpp
pcbnew/sel_layer.cpp
+0
-1
No files found.
pcbnew/dialogs/dialog_drc.h
View file @
335f5a57
...
...
@@ -118,10 +118,8 @@ private:
void
OnPopupMenu
(
wxCommandEvent
&
event
);
DRC
*
m_tester
;
PCB_EDIT_FRAME
*
m_Parent
;
int
m_UnconnectedCount
;
};
#endif // _DIALOG_DRC_H_
...
...
pcbnew/dialogs/dialog_footprint_wizard_list.h
View file @
335f5a57
...
...
@@ -11,7 +11,6 @@
class
DIALOG_FOOTPRINT_WIZARD_LIST
:
public
DIALOG_FOOTPRINT_WIZARD_LIST_BASE
{
private
:
wxDialog
*
m_Parent
;
FOOTPRINT_WIZARD
*
m_FootprintWizard
;
public
:
...
...
pcbnew/legacy_plugin.cpp
View file @
335f5a57
...
...
@@ -483,7 +483,8 @@ void LEGACY_PLUGIN::loadGENERAL()
m_board
->
SetBoundingBox
(
bbbox
);
}
/* Read the number of segments of type DRAW, TRACK, ZONE
/* This is no more usefull, so this info is no more parsed
// Read the number of segments of type DRAW, TRACK, ZONE
else if( TESTLINE( "Ndraw" ) )
{
NbDraw = intParse( line + SZ( "Ndraw" ) );
...
...
@@ -509,6 +510,11 @@ void LEGACY_PLUGIN::loadGENERAL()
m_netCodes
.
resize
(
intParse
(
line
+
SZ
(
"Nnets"
)
)
);
}
else
if
(
TESTLINE
(
"Nn"
)
)
// id "Nnets" for old .brd files
{
m_netCodes
.
resize
(
intParse
(
line
+
SZ
(
"Nn"
)
)
);
}
else
if
(
TESTLINE
(
"$EndGENERAL"
)
)
return
;
// preferred exit
}
...
...
@@ -1823,7 +1829,7 @@ void LEGACY_PLUGIN::loadNETINFO_ITEM()
NETINFO_ITEM
*
net
=
NULL
;
char
*
line
;
int
netCode
;
int
netCode
=
0
;
while
(
(
line
=
READLINE
(
m_reader
)
)
!=
NULL
)
{
...
...
@@ -1846,6 +1852,11 @@ void LEGACY_PLUGIN::loadNETINFO_ITEM()
if
(
net
!=
NULL
&&
(
net
->
GetNet
()
>
0
||
m_board
->
FindNet
(
0
)
==
NULL
)
)
{
m_board
->
AppendNet
(
net
);
// Be sure we have room to store the net in m_netCodes
if
(
(
int
)
m_netCodes
.
size
()
<=
netCode
)
m_netCodes
.
resize
(
netCode
+
1
);
m_netCodes
[
netCode
]
=
net
->
GetNet
();
}
else
...
...
pcbnew/sel_layer.cpp
View file @
335f5a57
...
...
@@ -252,7 +252,6 @@ class SELECT_COPPER_LAYERS_PAIR_DIALOG: public PCB_LAYER_SELECTOR,
public
DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE
{
private
:
BOARD
*
m_brd
;
LAYER_NUM
m_frontLayer
;
LAYER_NUM
m_backLayer
;
int
m_leftRowSelected
;
...
...
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