minor changes

This commit is contained in:
charras 2008-03-12 16:36:47 +00:00
parent 8ab53fc6aa
commit 0f06e2ad1e
1 changed files with 4 additions and 6 deletions

View File

@ -481,11 +481,10 @@ void WinEDA_SchematicFrame::OnLoadProject( wxCommandEvent& event )
void WinEDA_SchematicFrame::OnOpenPcbnew( wxCommandEvent& event ) void WinEDA_SchematicFrame::OnOpenPcbnew( wxCommandEvent& event )
{ {
wxString Line; wxString Line = g_RootSheet->m_AssociatedScreen->m_FileName;
if( g_RootSheet->m_AssociatedScreen->m_FileName != wxEmptyString ) if( Line != wxEmptyString )
{ {
Line = GetScreen()->m_FileName;
AddDelimiterString( Line ); AddDelimiterString( Line );
ChangeFileNameExt( Line, wxEmptyString ); ChangeFileNameExt( Line, wxEmptyString );
ExecuteFile( this, PCBNEW_EXE, Line ); ExecuteFile( this, PCBNEW_EXE, Line );
@ -496,11 +495,10 @@ void WinEDA_SchematicFrame::OnOpenPcbnew( wxCommandEvent& event )
void WinEDA_SchematicFrame::OnOpenCvpcb( wxCommandEvent& event ) void WinEDA_SchematicFrame::OnOpenCvpcb( wxCommandEvent& event )
{ {
wxString Line; wxString Line = g_RootSheet->m_AssociatedScreen->m_FileName;
if( g_RootSheet->m_AssociatedScreen->m_FileName != wxEmptyString ) if( Line != wxEmptyString )
{ {
Line = g_RootSheet->m_AssociatedScreen->m_FileName;
AddDelimiterString( Line ); AddDelimiterString( Line );
ChangeFileNameExt( Line, wxEmptyString ); ChangeFileNameExt( Line, wxEmptyString );
ExecuteFile( this, CVPCB_EXE, Line ); ExecuteFile( this, CVPCB_EXE, Line );