Reverted commit 4130083445.

This commit is contained in:
Tomasz Włostowski 2017-07-02 00:34:41 +02:00
parent 1936b45a0f
commit 0f5ab1bc87
1 changed files with 1 additions and 6 deletions

View File

@ -585,12 +585,7 @@ void PART_LIBS::LoadAllLibraries( PROJECT* aProject, bool aShowProgress )
lib_dialog.Update( i, _( "Loading " + lib_names[i] ) ); lib_dialog.Update( i, _( "Loading " + lib_names[i] ) );
} }
wxFileName fn; wxFileName fn ( lib_names[i] );
// Do not use string assignment or single string ctor when initializing a wxFileName
// object. File names with dots other than the file extension will be parsed
// incorrectly by wxFileName.
fn.SetName( lib_names[i] );
// lib_names[] does not store the file extension. Set it: // lib_names[] does not store the file extension. Set it:
fn.SetExt( SchematicLibraryFileExtension ); fn.SetExt( SchematicLibraryFileExtension );