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
94dccc91
Commit
94dccc91
authored
May 25, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew! fix Bug #1184030
very minor other chnages.
parent
da51dbe1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
schframe.cpp
eeschema/schframe.cpp
+3
-2
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+1
-1
netlist_reader.cpp
pcbnew/netlist_reader.cpp
+7
-2
netlist_reader.h
pcbnew/netlist_reader.h
+5
-1
No files found.
eeschema/schframe.cpp
View file @
94dccc91
...
...
@@ -530,13 +530,14 @@ wxString SCH_EDIT_FRAME::GetUniqueFilenameForCurrentSheet()
wxString
filename
=
fn
.
GetName
();
wxString
sheetFullName
=
m_CurrentSheet
->
PathHumanReadable
();
sheetFullName
.
Trim
(
true
);
sheetFullName
.
Trim
(
false
);
// Remove the last '/' of the path human readable
// (and for the root sheet, make sheetFullName empty):
sheetFullName
.
RemoveLast
();
sheetFullName
.
Trim
(
true
);
sheetFullName
.
Trim
(
false
);
// Convert path human readable separator to '-'
sheetFullName
.
Replace
(
wxT
(
"/"
),
wxT
(
"-"
)
);
...
...
pcbnew/kicad_plugin.cpp
View file @
94dccc91
...
...
@@ -1090,7 +1090,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
wxPoint
shapeoffset
=
aPad
->
GetOffset
();
if
(
(
sz
.
GetWidth
()
>
0
)
||
(
sz
.
GetHeight
()
>
0
)
||
(
shapeoffset
.
x
>
0
)
||
(
shapeoffset
.
y
>
0
)
)
(
shapeoffset
.
x
!=
0
)
||
(
shapeoffset
.
y
!=
0
)
)
{
m_out
->
Print
(
0
,
" (drill"
);
...
...
pcbnew/netlist_reader.cpp
View file @
94dccc91
...
...
@@ -370,9 +370,9 @@ NETLIST_READER* NETLIST_READER::GetNetlistReader( NETLIST* aNetlist,
}
void
CMP_READER
::
Load
(
NETLIST
*
aNetlist
)
throw
(
IO_ERROR
,
PARSE_ERROR
)
bool
CMP_READER
::
Load
(
NETLIST
*
aNetlist
)
throw
(
IO_ERROR
,
PARSE_ERROR
)
{
wxCHECK_
RET
(
aNetlist
!=
NULL
,
wxT
(
"No netlist passed to CMP_READER::Load()"
)
);
wxCHECK_
MSG
(
aNetlist
!=
NULL
,
true
,
wxT
(
"No netlist passed to CMP_READER::Load()"
)
);
wxString
reference
;
// Stores value read from line like Reference = BUS1;
wxString
timestamp
;
// Stores value read from line like TimeStamp = /32307DE2/AA450F67;
...
...
@@ -380,6 +380,7 @@ void CMP_READER::Load( NETLIST* aNetlist ) throw( IO_ERROR, PARSE_ERROR )
wxString
buffer
;
wxString
value
;
bool
ok
=
true
;
while
(
m_lineReader
->
ReadLine
()
)
{
...
...
@@ -434,5 +435,9 @@ void CMP_READER::Load( NETLIST* aNetlist ) throw( IO_ERROR, PARSE_ERROR )
// This is an usual case during the life of a design
if
(
component
)
component
->
SetFootprintName
(
footprint
);
else
ok
=
false
;
// can be used to display a warning in Pcbnew.
}
return
ok
;
}
pcbnew/netlist_reader.h
View file @
94dccc91
...
...
@@ -417,8 +417,12 @@ public:
*
* @throw IO_ERROR if a the #LINE_READER IO error occurs.
* @throw PARSE_ERROR if an error occurs while parsing the file.
* @return true if OK, false if a component reference found in the
* .cmp file is not found in netlist, which means the .cmp file
* is not updated. This is an usual case, in CvPcb, but can be used to
* print a warning in Pcbnew.
*/
void
Load
(
NETLIST
*
aNetlist
)
throw
(
IO_ERROR
,
PARSE_ERROR
);
bool
Load
(
NETLIST
*
aNetlist
)
throw
(
IO_ERROR
,
PARSE_ERROR
);
};
...
...
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