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
f54a9e58
Commit
f54a9e58
authored
Aug 27, 2009
by
stambaughw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed find library entry bug and applied missing bezier curve load patch.
parent
b6e8c338
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
class_libentry.cpp
eeschema/class_libentry.cpp
+4
-0
class_library.cpp
eeschema/class_library.cpp
+12
-1
libedit.cpp
eeschema/libedit.cpp
+10
-0
No files found.
eeschema/class_libentry.cpp
View file @
f54a9e58
...
@@ -517,6 +517,10 @@ bool EDA_LibComponentStruct::LoadDrawEntries( FILE* f, char* line,
...
@@ -517,6 +517,10 @@ bool EDA_LibComponentStruct::LoadDrawEntries( FILE* f, char* line,
newEntry
=
(
LibEDA_BaseStruct
*
)
new
LibDrawPolyline
(
this
);
newEntry
=
(
LibEDA_BaseStruct
*
)
new
LibDrawPolyline
(
this
);
break
;
break
;
case
'B'
:
/* Bezier Curves */
newEntry
=
(
LibEDA_BaseStruct
*
)
new
LibDrawBezier
(
this
);
break
;
default
:
default
:
errorMsg
.
Printf
(
_
(
"undefined DRAW command %c"
),
line
[
0
]
);
errorMsg
.
Printf
(
_
(
"undefined DRAW command %c"
),
line
[
0
]
);
m_Drawings
=
headEntry
;
m_Drawings
=
headEntry
;
...
...
eeschema/class_library.cpp
View file @
f54a9e58
...
@@ -124,7 +124,18 @@ LibCmpEntry* LibraryStruct::FindEntry( const wxChar* name, LibrEntryType type )
...
@@ -124,7 +124,18 @@ LibCmpEntry* LibraryStruct::FindEntry( const wxChar* name, LibrEntryType type )
if
(
entry
!=
NULL
&&
entry
->
Type
!=
ROOT
&&
type
==
ROOT
)
if
(
entry
!=
NULL
&&
entry
->
Type
!=
ROOT
&&
type
==
ROOT
)
{
{
EDA_LibCmpAliasStruct
*
alias
=
(
EDA_LibCmpAliasStruct
*
)
entry
;
EDA_LibCmpAliasStruct
*
alias
=
(
EDA_LibCmpAliasStruct
*
)
entry
;
entry
=
FindEntry
(
alias
->
m_RootName
);
PQCompFunc
(
(
PQCompFuncType
)
LibraryEntryCompare
);
entry
=
(
LibCmpEntry
*
)
PQFirst
(
&
m_Entries
,
false
);
while
(
entry
)
{
if
(
entry
->
m_Name
.
m_Text
.
CmpNoCase
(
name
)
==
0
&&
entry
->
Type
==
ROOT
)
break
;
entry
=
(
LibCmpEntry
*
)
PQNext
(
m_Entries
,
entry
,
NULL
);
}
}
}
return
entry
;
return
entry
;
...
...
eeschema/libedit.cpp
View file @
f54a9e58
...
@@ -186,6 +186,16 @@ library <%s>." ),
...
@@ -186,6 +186,16 @@ library <%s>." ),
}
}
CurrentLibEntry
=
CopyLibEntryStruct
(
(
EDA_LibComponentStruct
*
)
LibEntry
);
CurrentLibEntry
=
CopyLibEntryStruct
(
(
EDA_LibComponentStruct
*
)
LibEntry
);
if
(
CurrentLibEntry
==
NULL
)
{
msg
.
Printf
(
_
(
"Could not create copy of part <%s> in library <%s>."
),
(
const
wxChar
*
)
LibEntry
->
m_Name
.
m_Text
,
(
const
wxChar
*
)
Library
->
m_Name
);
DisplayError
(
this
,
msg
);
return
false
;
}
CurrentUnit
=
1
;
CurrentUnit
=
1
;
CurrentConvert
=
1
;
CurrentConvert
=
1
;
DisplayLibInfos
();
DisplayLibInfos
();
...
...
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