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
e39e3d53
Commit
e39e3d53
authored
Oct 05, 2009
by
stambaughw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix component library ordering bug.
parent
76d04d6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
eelibs_read_libraryfiles.cpp
eeschema/eelibs_read_libraryfiles.cpp
+9
-2
No files found.
eeschema/eelibs_read_libraryfiles.cpp
View file @
e39e3d53
...
...
@@ -24,6 +24,7 @@ void WinEDA_SchematicFrame::LoadLibraries( void )
wxFileName
fn
;
wxString
msg
,
tmp
,
errMsg
;
wxString
libraries_not_found
;
wxArrayString
sortOrder
;
CMP_LIBRARY_LIST
::
iterator
i
=
CMP_LIBRARY
::
GetLibraryList
().
begin
();
...
...
@@ -73,6 +74,7 @@ void WinEDA_SchematicFrame::LoadLibraries( void )
if
(
CMP_LIBRARY
::
AddLibrary
(
fn
,
errMsg
)
)
{
msg
+=
_
(
" loaded"
);
sortOrder
.
Add
(
fn
.
GetName
()
);
}
else
{
...
...
@@ -100,14 +102,19 @@ Error: %s" ),
}
/* Put the libraries in the correct order. */
CMP_LIBRARY
::
SetSortOrder
(
m_ComponentLibFiles
);
CMP_LIBRARY
::
SetSortOrder
(
sortOrder
);
CMP_LIBRARY
::
GetLibraryList
().
sort
();
#ifdef __WXDEBUG__
wxLogDebug
(
wxT
(
"Requested component library sort order."
)
);
for
(
size_t
i
=
0
;
i
<
sortOrder
.
GetCount
();
i
++
)
wxLogDebug
(
wxT
(
" "
)
+
sortOrder
[
i
]
);
wxLogDebug
(
wxT
(
"Component library sort order:"
)
);
for
(
i
=
CMP_LIBRARY
::
GetLibraryList
().
begin
();
i
<
CMP_LIBRARY
::
GetLibraryList
().
end
();
i
++
)
wxLogDebug
(
wxT
(
" "
)
+
i
->
GetName
()
);
wxLogDebug
(
wxT
(
"
"
)
+
i
->
GetName
()
);
#endif
}
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