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
3087c05a
Commit
3087c05a
authored
May 25, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix #1322914: pcbnew crashes when opening a file
parent
c87baa9d
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
583 additions
and
589 deletions
+583
-589
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+579
-586
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+4
-3
No files found.
pcbnew/kicad_plugin.cpp
View file @
3087c05a
This diff is collapsed.
Click to expand it.
pcbnew/legacy_plugin.cpp
View file @
3087c05a
...
@@ -3368,7 +3368,8 @@ void LEGACY_PLUGIN::savePAD( const D_PAD* me ) const
...
@@ -3368,7 +3368,8 @@ void LEGACY_PLUGIN::savePAD( const D_PAD* me ) const
fprintf
(
m_fp
,
"At %s N %08X
\n
"
,
texttype
,
me
->
GetLayerMask
()
);
fprintf
(
m_fp
,
"At %s N %08X
\n
"
,
texttype
,
me
->
GetLayerMask
()
);
fprintf
(
m_fp
,
"Ne %d %s
\n
"
,
me
->
GetNetCode
(),
EscapedUTF8
(
me
->
GetNetname
()
).
c_str
()
);
fprintf
(
m_fp
,
"Ne %d %s
\n
"
,
m_mapping
->
Translate
(
me
->
GetNetCode
()
),
EscapedUTF8
(
me
->
GetNetname
()
).
c_str
()
);
fprintf
(
m_fp
,
"Po %s
\n
"
,
fmtBIUPoint
(
me
->
GetPos0
()
).
c_str
()
);
fprintf
(
m_fp
,
"Po %s
\n
"
,
fmtBIUPoint
(
me
->
GetPos0
()
).
c_str
()
);
...
@@ -3635,7 +3636,7 @@ void LEGACY_PLUGIN::saveTRACK( const TRACK* me ) const
...
@@ -3635,7 +3636,7 @@ void LEGACY_PLUGIN::saveTRACK( const TRACK* me ) const
"-1"
:
fmtBIU
(
drill
).
c_str
()
);
"-1"
:
fmtBIU
(
drill
).
c_str
()
);
fprintf
(
m_fp
,
"De %d %d %d %lX %X
\n
"
,
fprintf
(
m_fp
,
"De %d %d %d %lX %X
\n
"
,
me
->
GetLayer
(),
type
,
m
e
->
GetNetCode
(
),
me
->
GetLayer
(),
type
,
m
_mapping
->
Translate
(
me
->
GetNetCode
()
),
me
->
GetTimeStamp
(),
me
->
GetStatus
()
);
me
->
GetTimeStamp
(),
me
->
GetStatus
()
);
}
}
...
@@ -3649,7 +3650,7 @@ void LEGACY_PLUGIN::saveZONE_CONTAINER( const ZONE_CONTAINER* me ) const
...
@@ -3649,7 +3650,7 @@ void LEGACY_PLUGIN::saveZONE_CONTAINER( const ZONE_CONTAINER* me ) const
// just for ZONE_CONTAINER compatibility
// just for ZONE_CONTAINER compatibility
fprintf
(
m_fp
,
"ZInfo %lX %d %s
\n
"
,
fprintf
(
m_fp
,
"ZInfo %lX %d %s
\n
"
,
me
->
GetTimeStamp
(),
me
->
GetTimeStamp
(),
me
->
GetIsKeepout
()
?
0
:
m
e
->
GetNetCode
(
),
me
->
GetIsKeepout
()
?
0
:
m
_mapping
->
Translate
(
me
->
GetNetCode
()
),
EscapedUTF8
(
me
->
GetIsKeepout
()
?
wxT
(
""
)
:
me
->
GetNetname
()
).
c_str
()
);
EscapedUTF8
(
me
->
GetIsKeepout
()
?
wxT
(
""
)
:
me
->
GetNetname
()
).
c_str
()
);
// Save the outline layer info
// Save the outline layer info
...
...
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