Default keep upright to false in design settings.
The board file only writes out a token if it's true, so the value must default to false. Fixes: lp:1845883 * https://bugs.launchpad.net/kicad/+bug/1845883
This commit is contained in:
parent
d17cef95fd
commit
6179dfde37
|
@ -447,14 +447,14 @@ BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS() :
|
|||
Millimeter2iu( DEFAULT_SILK_TEXT_SIZE ) );
|
||||
m_TextThickness[ LAYER_CLASS_SILK ] = Millimeter2iu( DEFAULT_SILK_TEXT_WIDTH );
|
||||
m_TextItalic[ LAYER_CLASS_SILK ] = false;
|
||||
m_TextUpright[ LAYER_CLASS_SILK ] = true;
|
||||
m_TextUpright[ LAYER_CLASS_SILK ] = false;
|
||||
|
||||
m_LineThickness[ LAYER_CLASS_COPPER ] = Millimeter2iu( DEFAULT_COPPER_LINE_WIDTH );
|
||||
m_TextSize[ LAYER_CLASS_COPPER ] = wxSize( Millimeter2iu( DEFAULT_COPPER_TEXT_SIZE ),
|
||||
Millimeter2iu( DEFAULT_COPPER_TEXT_SIZE ) );
|
||||
m_TextThickness[ LAYER_CLASS_COPPER ] = Millimeter2iu( DEFAULT_COPPER_TEXT_WIDTH );
|
||||
m_TextItalic[ LAYER_CLASS_COPPER ] = false;
|
||||
m_TextUpright[ LAYER_CLASS_COPPER ] = true;
|
||||
m_TextUpright[ LAYER_CLASS_COPPER ] = false;
|
||||
|
||||
// Edges & Courtyards; text properties aren't used but better to have them holding
|
||||
// reasonable values than not.
|
||||
|
@ -463,21 +463,21 @@ BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS() :
|
|||
Millimeter2iu( DEFAULT_TEXT_SIZE ) );
|
||||
m_TextThickness[ LAYER_CLASS_EDGES ] = Millimeter2iu( DEFAULT_TEXT_WIDTH );
|
||||
m_TextItalic[ LAYER_CLASS_EDGES ] = false;
|
||||
m_TextUpright[ LAYER_CLASS_EDGES ] = true;
|
||||
m_TextUpright[ LAYER_CLASS_EDGES ] = false;
|
||||
|
||||
m_LineThickness[ LAYER_CLASS_COURTYARD ] = Millimeter2iu( DEFAULT_COURTYARD_WIDTH );
|
||||
m_TextSize[ LAYER_CLASS_COURTYARD ] = wxSize( Millimeter2iu( DEFAULT_TEXT_SIZE ),
|
||||
Millimeter2iu( DEFAULT_TEXT_SIZE ) );
|
||||
m_TextThickness[ LAYER_CLASS_COURTYARD ] = Millimeter2iu( DEFAULT_TEXT_WIDTH );
|
||||
m_TextItalic[ LAYER_CLASS_COURTYARD ] = false;
|
||||
m_TextUpright[ LAYER_CLASS_COURTYARD ] = true;
|
||||
m_TextUpright[ LAYER_CLASS_COURTYARD ] = false;
|
||||
|
||||
m_LineThickness[ LAYER_CLASS_OTHERS ] = Millimeter2iu( DEFAULT_LINE_WIDTH );
|
||||
m_TextSize[ LAYER_CLASS_OTHERS ] = wxSize( Millimeter2iu( DEFAULT_TEXT_SIZE ),
|
||||
Millimeter2iu( DEFAULT_TEXT_SIZE ) );
|
||||
m_TextThickness[ LAYER_CLASS_OTHERS ] = Millimeter2iu( DEFAULT_TEXT_WIDTH );
|
||||
m_TextItalic[ LAYER_CLASS_OTHERS ] = false;
|
||||
m_TextUpright[ LAYER_CLASS_OTHERS ] = true;
|
||||
m_TextUpright[ LAYER_CLASS_OTHERS ] = false;
|
||||
|
||||
m_useCustomTrackVia = false;
|
||||
m_customTrackWidth = Millimeter2iu( DEFAULT_CUSTOMTRACKWIDTH );
|
||||
|
|
|
@ -24,18 +24,11 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file pcbnew_config.cpp
|
||||
*/
|
||||
|
||||
#include <fctsys.h>
|
||||
#include <kiface_i.h>
|
||||
#include <project.h>
|
||||
#include <pcb_draw_panel_gal.h>
|
||||
#include <confirm.h>
|
||||
#include <gestfich.h>
|
||||
#include <xnode.h>
|
||||
#include <common.h>
|
||||
#include <macros.h>
|
||||
#include <pcb_edit_frame.h>
|
||||
#include <board_design_settings.h>
|
||||
|
@ -45,9 +38,7 @@
|
|||
#include <panel_pcbnew_settings.h>
|
||||
#include <panel_pcbnew_display_options.h>
|
||||
#include <panel_pcbnew_action_plugins.h>
|
||||
#include <panel_hotkeys_editor.h>
|
||||
#include <fp_lib_table.h>
|
||||
#include <ws_draw_item.h>
|
||||
#include <ws_data_model.h>
|
||||
#include <class_board.h>
|
||||
#include <class_module.h>
|
||||
|
@ -56,7 +47,6 @@
|
|||
#include <footprint_viewer_frame.h>
|
||||
#include <invoke_pcb_dialog.h>
|
||||
#include <wildcards_and_files_ext.h>
|
||||
#include <view/view.h>
|
||||
#include <widgets/paged_dialog.h>
|
||||
|
||||
|
||||
|
@ -86,8 +76,7 @@ void PCB_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent,
|
|||
|
||||
bool PCB_EDIT_FRAME::LoadProjectSettings()
|
||||
{
|
||||
wxLogDebug( wxT( "Loading project '%s' settings." ),
|
||||
GetChars( Prj().GetProjectFullName() ) );
|
||||
wxLogDebug( wxT( "Loading project '%s' settings." ), GetChars( Prj().GetProjectFullName() ) );
|
||||
|
||||
bool rc = Prj().ConfigLoad( Kiface().KifaceSearch(), GROUP_PCB, GetProjectFileParameters() );
|
||||
|
||||
|
@ -110,8 +99,7 @@ void PCB_EDIT_FRAME::SaveProjectSettings( bool aAskForSave )
|
|||
|
||||
if( aAskForSave )
|
||||
{
|
||||
wxFileDialog dlg( this, _( "Save Project File" ),
|
||||
fn.GetPath(), fn.GetFullName(),
|
||||
wxFileDialog dlg( this, _( "Save Project File" ), fn.GetPath(), fn.GetFullName(),
|
||||
ProjectFileWildcard(), wxFD_SAVE | wxFD_CHANGE_DIR );
|
||||
|
||||
if( dlg.ShowModal() == wxID_CANCEL )
|
||||
|
|
Loading…
Reference in New Issue