Commit fe7a7215 authored by Wayne Stambaugh's avatar Wayne Stambaugh

Fix junction drawn off grid on root sheet bug.

parent 0d8cb9b5
...@@ -297,6 +297,7 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& FileName, bool IsNew ) ...@@ -297,6 +297,7 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& FileName, bool IsNew )
// load the project. // load the project.
g_RootSheet->SetScreen( NULL ); g_RootSheet->SetScreen( NULL );
bool diag = g_RootSheet->Load( this ); bool diag = g_RootSheet->Load( this );
SetScreen( m_CurrentSheet->LastScreen() );
/* Redraw base screen (ROOT) if necessary. */ /* Redraw base screen (ROOT) if necessary. */
GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId ); GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
......
...@@ -324,6 +324,7 @@ void SCH_EDIT_FRAME::CreateScreens() ...@@ -324,6 +324,7 @@ void SCH_EDIT_FRAME::CreateScreens()
if( g_RootSheet->GetScreen() == NULL ) if( g_RootSheet->GetScreen() == NULL )
{ {
g_RootSheet->SetScreen( new SCH_SCREEN() ); g_RootSheet->SetScreen( new SCH_SCREEN() );
SetScreen( g_RootSheet->GetScreen() );
} }
g_RootSheet->GetScreen()->SetFileName( m_DefaultSchematicFileName ); g_RootSheet->GetScreen()->SetFileName( m_DefaultSchematicFileName );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment