diff --git a/eeschema/dialogs/panel_eeschema_display_options.cpp b/eeschema/dialogs/panel_eeschema_display_options.cpp index 0303647e42..c7c337173b 100644 --- a/eeschema/dialogs/panel_eeschema_display_options.cpp +++ b/eeschema/dialogs/panel_eeschema_display_options.cpp @@ -1,8 +1,8 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2009 Wayne Stambaugh - * Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2009 Wayne Stambaugh + * Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -86,7 +86,7 @@ bool PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow() m_checkSelTextBox->SetValue( GetSelectionTextAsBox() ); m_checkSelDrawChildItems->SetValue( GetSelectionDrawChildItems() ); m_checkSelFillShapes->SetValue( GetSelectionFillShapes() ); - m_selWidthCtrl->SetValue( GetSelectionThickness() ); + m_selWidthCtrl->SetValue( Iu2Mils( GetSelectionThickness() ) ); m_galOptsPanel->TransferDataToWindow(); @@ -126,7 +126,7 @@ bool PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow() SetSelectionTextAsBox( m_checkSelTextBox->GetValue() ); SetSelectionDrawChildItems( m_checkSelDrawChildItems->GetValue() ); SetSelectionFillShapes( m_checkSelFillShapes->GetValue() ); - SetSelectionThickness( m_selWidthCtrl->GetValue() ); + SetSelectionThickness( Mils2iu( m_selWidthCtrl->GetValue() ) ); // Update canvas m_frame->GetRenderSettings()->m_ShowHiddenPins = m_checkShowHiddenPins->GetValue(); diff --git a/eeschema/dialogs/panel_eeschema_display_options_base.cpp b/eeschema/dialogs/panel_eeschema_display_options_base.cpp index df010f991b..0b8cee6019 100644 --- a/eeschema/dialogs/panel_eeschema_display_options_base.cpp +++ b/eeschema/dialogs/panel_eeschema_display_options_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version v3.8.0) +// C++ code generated with wxFormBuilder (version 3.9.0 Jan 23 2020) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -124,9 +124,9 @@ PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE( wxWind m_selWidthLabel->Wrap( -1 ); fgSizer321->Add( m_selWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_selWidthCtrl = new wxSpinCtrlDouble( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 50, 0, 1 ); + m_selWidthCtrl = new wxSpinCtrlDouble( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 ); m_selWidthCtrl->SetDigits( 0 ); - fgSizer321->Add( m_selWidthCtrl, 0, wxEXPAND, 5 ); + fgSizer321->Add( m_selWidthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 ); sbSizer3->Add( fgSizer321, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); diff --git a/eeschema/dialogs/panel_eeschema_display_options_base.fbp b/eeschema/dialogs/panel_eeschema_display_options_base.fbp index 839f1db640..20d774d819 100644 --- a/eeschema/dialogs/panel_eeschema_display_options_base.fbp +++ b/eeschema/dialogs/panel_eeschema_display_options_base.fbp @@ -14,6 +14,7 @@ panel_eeschema_display_options_base 1000 none + 1 PanelEeschemaDisplayOptions @@ -25,6 +26,7 @@ 1 1 UI + 0 1 0 @@ -1289,7 +1291,7 @@ 5 - wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT 0 1 @@ -1341,7 +1343,7 @@ Resizable 1 - wxSP_ARROW_KEYS + wxALIGN_RIGHT|wxSP_ARROW_KEYS ; ; forward_declare 0 diff --git a/eeschema/dialogs/panel_eeschema_display_options_base.h b/eeschema/dialogs/panel_eeschema_display_options_base.h index 84054978e2..61aa92107c 100644 --- a/eeschema/dialogs/panel_eeschema_display_options_base.h +++ b/eeschema/dialogs/panel_eeschema_display_options_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version v3.8.0) +// C++ code generated with wxFormBuilder (version 3.9.0 Jan 23 2020) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE!