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
7d1170c4
Commit
7d1170c4
authored
Oct 06, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
cdf9a229
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
component_class.h
eeschema/component_class.h
+2
-2
load_one_schematic_file.cpp
eeschema/load_one_schematic_file.cpp
+3
-5
No files found.
eeschema/component_class.h
View file @
7d1170c4
...
@@ -158,8 +158,8 @@ public:
...
@@ -158,8 +158,8 @@ public:
/**
/**
* Function AddField
* Function AddField
* adds a field to the component. The
component takes over ownership
* adds a field to the component. The
field is copied as it is put into
*
of the field
.
*
the component
.
* @param aField A const reference to the SCH_CMP_FIELD to add.
* @param aField A const reference to the SCH_CMP_FIELD to add.
*/
*/
void
AddField
(
const
SCH_CMP_FIELD
&
aField
);
void
AddField
(
const
SCH_CMP_FIELD
&
aField
);
...
...
eeschema/load_one_schematic_file.cpp
View file @
7d1170c4
...
@@ -516,6 +516,8 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
...
@@ -516,6 +516,8 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
SCH_COMPONENT
*
component
;
SCH_COMPONENT
*
component
;
int
Failed
=
0
,
newfmt
=
0
;
int
Failed
=
0
,
newfmt
=
0
;
char
*
ptcar
;
char
*
ptcar
;
wxString
fieldName
;
component
=
new
SCH_COMPONENT
();
component
=
new
SCH_COMPONENT
();
...
@@ -671,8 +673,6 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
...
@@ -671,8 +673,6 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
int
hjustify
=
GR_TEXT_HJUSTIFY_CENTER
;
int
hjustify
=
GR_TEXT_HJUSTIFY_CENTER
;
int
vjustify
=
GR_TEXT_VJUSTIFY_CENTER
;
int
vjustify
=
GR_TEXT_VJUSTIFY_CENTER
;
wxString
fieldName
;
FieldUserName
[
0
]
=
0
;
FieldUserName
[
0
]
=
0
;
/* Lecture du champ */
/* Lecture du champ */
...
@@ -712,13 +712,11 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
...
@@ -712,13 +712,11 @@ static int ReadPartDescr( wxWindow* frame, char* Line, FILE* f,
ReadDelimitedText
(
FieldUserName
,
ptcar
,
sizeof
(
FieldUserName
)
);
ReadDelimitedText
(
FieldUserName
,
ptcar
,
sizeof
(
FieldUserName
)
);
if
(
0
==
strlen
(
FieldUserName
)
)
if
(
!
FieldUserName
[
0
]
)
fieldName
=
ReturnDefaultFieldName
(
fieldNdx
);
fieldName
=
ReturnDefaultFieldName
(
fieldNdx
);
else
else
fieldName
=
CONV_FROM_UTF8
(
FieldUserName
);
fieldName
=
CONV_FROM_UTF8
(
FieldUserName
);
D
(
printf
(
"FiledUserName=
\"
%s
\"\n
"
,
FieldUserName
);)
if
(
fieldNdx
>=
component
->
GetFieldCount
()
)
if
(
fieldNdx
>=
component
->
GetFieldCount
()
)
{
{
// add as many fields as needed so the m_FieldId's are contiguous, no gaps.
// add as many fields as needed so the m_FieldId's are contiguous, no gaps.
...
...
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