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
c00a93e9
Commit
c00a93e9
authored
Nov 25, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: a strange bug with setvbuf in FILE_LINE_READER disalign the netlist reader.
parent
126a7c10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
netlist_reader_firstformat.cpp
pcbnew/netlist_reader_firstformat.cpp
+6
-1
No files found.
pcbnew/netlist_reader_firstformat.cpp
View file @
c00a93e9
...
...
@@ -80,9 +80,14 @@ bool NETLIST_READER::ReadOldFmtdNetList( FILE* aFile )
/* First, read the netlist: Build the list of footprints found in netlist
*/
#ifndef __WXMAC__
// netlineReader dtor will close aFile
FILE_LINE_READER
netlineReader
(
aFile
,
m_netlistFullName
);
#else
//Seems that the setvbuf call destroys the FILE buffer (already allocated)
//And looses the first 4096 bytes so we set doOwn => false
FILE_LINE_READER
netlineReader
(
aFile
,
m_netlistFullName
,
false
);
#endif
COMPONENT_INFO
*
curComponent
=
NULL
;
while
(
netlineReader
.
ReadLine
()
)
{
...
...
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