Fix junction drawn off grid on root sheet bug.
This commit is contained in:
@@ -297,6 +297,7 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& FileName, bool IsNew )
|
||||
// load the project.
|
||||
g_RootSheet->SetScreen( NULL );
|
||||
bool diag = g_RootSheet->Load( this );
|
||||
SetScreen( m_CurrentSheet->LastScreen() );
|
||||
|
||||
/* Redraw base screen (ROOT) if necessary. */
|
||||
GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
|
||||
|
||||
@@ -324,6 +324,7 @@ void SCH_EDIT_FRAME::CreateScreens()
|
||||
if( g_RootSheet->GetScreen() == NULL )
|
||||
{
|
||||
g_RootSheet->SetScreen( new SCH_SCREEN() );
|
||||
SetScreen( g_RootSheet->GetScreen() );
|
||||
}
|
||||
|
||||
g_RootSheet->GetScreen()->SetFileName( m_DefaultSchematicFileName );
|
||||
|
||||
Reference in New Issue
Block a user