diff --git a/pcb_calculator/attenuators/attenuator_classes.h b/pcb_calculator/attenuators/attenuator_classes.h index 96e21e7159..65a3705ee9 100644 --- a/pcb_calculator/attenuators/attenuator_classes.h +++ b/pcb_calculator/attenuators/attenuator_classes.h @@ -47,10 +47,10 @@ protected: protected: - // The constructor is protected, because this class is not intendent to be instancied + // The constructor is protected, because this class is not intended to be instancied ATTENUATOR( ATTENUATORS_TYPE Topology ); public: - ~ATTENUATOR(); + virtual ~ATTENUATOR(); /** * Function Calculate @@ -76,25 +76,33 @@ public: class ATTENUATOR_PI : public ATTENUATOR { -public: ATTENUATOR_PI(); +public: + ATTENUATOR_PI(); + ~ATTENUATOR_PI(){}; virtual bool Calculate(); }; class ATTENUATOR_TEE : public ATTENUATOR { -public: ATTENUATOR_TEE(); +public: + ATTENUATOR_TEE(); + ~ATTENUATOR_TEE(){}; virtual bool Calculate(); }; class ATTENUATOR_BRIDGE : public ATTENUATOR { -public: ATTENUATOR_BRIDGE(); +public: + ATTENUATOR_BRIDGE(); + ~ATTENUATOR_BRIDGE(){}; virtual bool Calculate(); }; class ATTENUATOR_SPLITTER : public ATTENUATOR { -public: ATTENUATOR_SPLITTER(); +public: + ATTENUATOR_SPLITTER(); + ~ATTENUATOR_SPLITTER(){}; virtual bool Calculate(); }; diff --git a/pcbnew/class_board_design_settings.cpp b/pcbnew/class_board_design_settings.cpp index c74cc1bf01..3aeb663bd3 100644 --- a/pcbnew/class_board_design_settings.cpp +++ b/pcbnew/class_board_design_settings.cpp @@ -24,7 +24,7 @@ #define DEFAULT_TEXT_MODULE_SIZE Millimeter2iu( 1.5 ) #define DEFAULT_GR_MODULE_THICKNESS Millimeter2iu( 0.15 ) -#define DEFAULT_SOLDERMASK_CLEARANCE Millimeter2iu( 0.1 ) +#define DEFAULT_SOLDERMASK_CLEARANCE Millimeter2iu( 0.2 ) #define DEFAULT_SOLDERMASK_MIN_WIDTH Millimeter2iu( 0.0 ) diff --git a/pcbnew/librairi.cpp b/pcbnew/librairi.cpp index c9ae4dfa90..fe21dd7f0c 100644 --- a/pcbnew/librairi.cpp +++ b/pcbnew/librairi.cpp @@ -259,6 +259,7 @@ void FOOTPRINT_EDIT_FRAME::Export_Module( MODULE* aModule, bool aCreateSysLib ) module->SetOrientation( 0 ); */ + LOCALE_IO toggle; pcb_io.Format( aModule ); FILE* fp = wxFopen( dlg.GetPath(), wxT( "wt" ) ); diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index bb713e2b92..5e868bb34f 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -1700,6 +1700,8 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR ) } } + module->CalculateBoundingBox(); + return module.release(); } diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index 75270567c9..76315b6267 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -193,6 +193,11 @@ Changing extension to .brd." ), GetChars( fn.GetFullPath() ) ); } } + else + // No file to open: initialize a new empty board + // using default values for design settings: + frame->Clear_Pcb( false ); + // update the layer names in the listbox frame->ReCreateLayerBox( NULL );