Default sizes for edit frames in case prefs get deleted.
Fixes: lp:1807676 * https://bugs.launchpad.net/kicad/+bug/1807676
This commit is contained in:
parent
4013f6424d
commit
40dac0ecbb
|
@ -205,6 +205,7 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
|||
m_syncPinEdit = false;
|
||||
m_repeatPinStep = DEFAULT_REPEAT_OFFSET_PIN;
|
||||
SetShowElectricalType( true );
|
||||
m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs
|
||||
|
||||
m_my_part = NULL;
|
||||
m_tempCopyComponent = NULL;
|
||||
|
|
|
@ -386,6 +386,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ):
|
|||
m_findReplaceStatus = new wxString( wxEmptyString );
|
||||
m_undoItem = NULL;
|
||||
m_hasAutoSave = true;
|
||||
m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs
|
||||
|
||||
m_toolManager = new TOOL_MANAGER;
|
||||
|
||||
|
|
|
@ -220,6 +220,7 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent,
|
|||
m_showAxis = true; // true to show X and Y axis on screen
|
||||
m_showGridAxis = true; // show the grid origin axis
|
||||
m_hotkeysDescrList = g_Module_Editor_Hotkeys_Descr;
|
||||
m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs
|
||||
|
||||
// Give an icon
|
||||
wxIcon icon;
|
||||
|
|
|
@ -305,6 +305,7 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
|||
m_hasAutoSave = true;
|
||||
m_microWaveToolBar = NULL;
|
||||
m_Layers = nullptr;
|
||||
m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs
|
||||
|
||||
// We don't know what state board was in when it was lasat saved, so we have to
|
||||
// assume dirty
|
||||
|
|
Loading…
Reference in New Issue