gerbview command line support
This commit is contained in:
parent
ad55799485
commit
1e4659bb4e
|
@ -125,9 +125,9 @@ int WinEDA_GerberFrame::LoadOneGerberFile( const wxString& FullFileName,
|
|||
if( filename == wxEmptyString )
|
||||
{
|
||||
wxString mask = wxT( "*" ) + g_PhotoFilenameExt;
|
||||
|
||||
|
||||
mask += wxT( ";*.gbr;*.gbx;*.lgr;*.ger" );
|
||||
|
||||
|
||||
filename = EDA_FileSelector( _( "Gerber files:" ),
|
||||
path, /* Chemin par defaut */
|
||||
wxEmptyString, /* nom fichier par defaut */
|
||||
|
@ -142,9 +142,10 @@ int WinEDA_GerberFrame::LoadOneGerberFile( const wxString& FullFileName,
|
|||
}
|
||||
|
||||
GetScreen()->m_FileName = filename;
|
||||
|
||||
wxSetWorkingDirectory( path );
|
||||
|
||||
|
||||
if( path != wxEmptyString )
|
||||
wxSetWorkingDirectory( path );
|
||||
|
||||
ChangeFileNameExt( filename, g_PenFilenameExt );
|
||||
|
||||
if( Read_GERBER_File( DC, GetScreen()->m_FileName, filename ) )
|
||||
|
|
|
@ -70,7 +70,8 @@ bool WinEDA_App::OnInit()
|
|||
|
||||
wxString path = wxPathOnly( fileName );
|
||||
|
||||
wxSetWorkingDirectory( path );
|
||||
if( path != wxEmptyString )
|
||||
wxSetWorkingDirectory( path );
|
||||
|
||||
Read_Config();
|
||||
|
||||
|
|
|
@ -149,7 +149,9 @@ bool WinEDA_GerberFrame::Read_GERBER_File( wxDC* DC,
|
|||
|
||||
gerber_layer->m_FileName = GERBER_FullFileName;
|
||||
|
||||
wxSetWorkingDirectory( wxPathOnly( GERBER_FullFileName ) );
|
||||
wxString path = wxPathOnly( GERBER_FullFileName );
|
||||
if( path != wxEmptyString )
|
||||
wxSetWorkingDirectory( path );
|
||||
|
||||
wxBusyCursor show_wait;
|
||||
setlocale( LC_NUMERIC, "C" );
|
||||
|
|
Loading…
Reference in New Issue