Commit 82d8faeb authored by charras's avatar charras

eeschema: library order when loading libs fixed (i hope)

parent 9f7ca344
......@@ -164,8 +164,7 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
else
msg += _( " error!" );
frame->PrintMsg( msg );
}
frame->PrintMsg( msg ); }
// reorder the linked list to match the order filename list:
int NumOfLibs;
......@@ -186,7 +185,8 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
{
if( jj >= NumOfLibs )
break;
lib = FindLibrary( g_LibName_List[ii] );
fn = g_LibName_List[ii];
lib = FindLibrary( fn.GetName() );
if( lib )
{
lib->m_Flags = 1;
......@@ -212,7 +212,9 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
MyFree( libs );
for( lib = g_LibraryList; lib != NULL; lib = lib->m_Pnext )
{
lib->m_Flags = 0;
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment