From 0f06e2ad1e619a564e1952963362ce1ca4b2ae20 Mon Sep 17 00:00:00 2001 From: charras Date: Wed, 12 Mar 2008 16:36:47 +0000 Subject: [PATCH] minor changes --- eeschema/schframe.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp index 82455449ad..f2d3e4de16 100644 --- a/eeschema/schframe.cpp +++ b/eeschema/schframe.cpp @@ -481,11 +481,10 @@ void WinEDA_SchematicFrame::OnLoadProject( 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 ); ChangeFileNameExt( Line, wxEmptyString ); ExecuteFile( this, PCBNEW_EXE, Line ); @@ -496,11 +495,10 @@ void WinEDA_SchematicFrame::OnOpenPcbnew( 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 ); ChangeFileNameExt( Line, wxEmptyString ); ExecuteFile( this, CVPCB_EXE, Line );