Browse Source

LTspice import: fix Mac path variable shadowing.

newinvert
Alex Shvartzkop 2 years ago
parent
commit
89a9eee174
  1. 2
      eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp

2
eeschema/sch_plugins/ltspice/ltspice_sch_plugin.cpp

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

Loading…
Cancel
Save