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) ...@@ -164,8 +164,7 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
else else
msg += _( " error!" ); msg += _( " error!" );
frame->PrintMsg( msg ); frame->PrintMsg( msg ); }
}
// reorder the linked list to match the order filename list: // reorder the linked list to match the order filename list:
int NumOfLibs; int NumOfLibs;
...@@ -186,7 +185,8 @@ void LoadLibraries (WinEDA_DrawFrame* frame) ...@@ -186,7 +185,8 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
{ {
if( jj >= NumOfLibs ) if( jj >= NumOfLibs )
break; break;
lib = FindLibrary( g_LibName_List[ii] ); fn = g_LibName_List[ii];
lib = FindLibrary( fn.GetName() );
if( lib ) if( lib )
{ {
lib->m_Flags = 1; lib->m_Flags = 1;
...@@ -212,7 +212,9 @@ void LoadLibraries (WinEDA_DrawFrame* frame) ...@@ -212,7 +212,9 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
MyFree( libs ); MyFree( libs );
for( lib = g_LibraryList; lib != NULL; lib = lib->m_Pnext ) for( lib = g_LibraryList; lib != NULL; lib = lib->m_Pnext )
{
lib->m_Flags = 0; 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