Start an empty document with a reasonable grid size.
This commit is contained in:
parent
58100b62e6
commit
9e9db3afe5
|
@ -239,7 +239,7 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
|||
|
||||
SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
|
||||
|
||||
GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
|
||||
SetPresetGrid( m_LastGridSizeId );
|
||||
|
||||
if( m_canvas )
|
||||
m_canvas->SetEnableBlockCommands( true );
|
||||
|
|
|
@ -407,6 +407,8 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ):
|
|||
if( !GetScreen()->GridExists( m_LastGridSizeId + ID_POPUP_GRID_LEVEL_1000 ) )
|
||||
m_LastGridSizeId = default_grid;
|
||||
|
||||
SetPresetGrid( m_LastGridSizeId );
|
||||
|
||||
SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
|
||||
|
||||
if( m_canvas )
|
||||
|
|
|
@ -68,6 +68,7 @@ SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL( wxWindow* aParentWindow, wxWindowID aWindo
|
|||
|
||||
m_gal->SetGridColor( COLOR4D(0.0, 0.0, 0.0, 1.0) );
|
||||
m_gal->SetCursorColor( COLOR4D(0.0, 0.0, 0.0, 1.0) );
|
||||
m_gal->SetGridSize( VECTOR2D( 50.0, 50.0 ) );
|
||||
|
||||
m_viewControls->SetSnapping( true );
|
||||
|
||||
|
|
|
@ -139,7 +139,8 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
|
|||
|
||||
// Initialize grid id to the default value (50 mils):
|
||||
m_LastGridSizeId = ID_POPUP_GRID_LEVEL_50 - ID_POPUP_GRID_LEVEL_1000;
|
||||
GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
|
||||
|
||||
SetPresetGrid( m_LastGridSizeId );
|
||||
|
||||
// Menu bar is not mandatory: uncomment/comment the next line
|
||||
// to add/remove the menubar
|
||||
|
|
Loading…
Reference in New Issue