LTspice import: fix Mac path variable shadowing.

This commit is contained in:
Alex Shvartzkop 2023-07-12 18:07:26 +05:00
parent b47f172e57
commit 89a9eee174
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ SCH_SHEET* SCH_LTSPICE_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSche
if( !ltspiceDataDir.DirExists() ) if( !ltspiceDataDir.DirExists() )
{ {
// Mac path // Mac path
wxFileName ltspiceDataDir( KIPLATFORM::ENV::GetUserDataPath(), wxEmptyString ); ltspiceDataDir = wxFileName( KIPLATFORM::ENV::GetUserDataPath(), wxEmptyString );
ltspiceDataDir.RemoveLastDir(); // "kicad" ltspiceDataDir.RemoveLastDir(); // "kicad"
ltspiceDataDir.AppendDir( wxS( "LTspice" ) ); ltspiceDataDir.AppendDir( wxS( "LTspice" ) );
ltspiceDataDir.AppendDir( wxS( "lib" ) ); ltspiceDataDir.AppendDir( wxS( "lib" ) );