Browse Source

Fix uninitialized variables.

especially BOARD_DESIGN_SETTINGS::m_HoleToHoleMin was not initialized, but used in pcbnew when creating a new board
merge-requests/1/head
jean-pierre charras 6 years ago
parent
commit
bfe2fbf991
  1. 1
      pcbnew/board_design_settings.cpp
  2. 1
      pcbnew/dialogs/dialog_create_array.cpp
  3. 2
      pcbnew/dialogs/panel_modedit_display_options.h
  4. 3390
      pcbnew/dialogs/panel_setup_feature_constraints_base.fbp

1
pcbnew/board_design_settings.cpp

@ -495,6 +495,7 @@ BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS() :
m_MicroViasMinSize = Millimeter2iu( DEFAULT_MICROVIASMINSIZE );
m_MicroViasMinDrill = Millimeter2iu( DEFAULT_MICROVIASMINDRILL );
m_CopperEdgeClearance = Millimeter2iu( DEFAULT_COPPEREDGECLEARANCE );
m_HoleToHoleMin = Millimeter2iu( DEFAULT_HOLETOHOLEMIN );
m_MaxError = ARC_HIGH_DEF;
m_ZoneUseNoOutlineInFill = false; // Use compatibility mode by default

1
pcbnew/dialogs/dialog_create_array.cpp

@ -67,6 +67,7 @@ struct CREATE_ARRAY_DIALOG_ENTRIES
m_circAngle( 0.0 ),
m_circCount( 4 ),
m_circNumberingStartSet( 1 ), // use specified start
m_gridCircNumScheme( 0 ),
m_circNumberingOffset( "1" ),
m_circNumberingStep( 1 ),
m_circRotate( false ),

2
pcbnew/dialogs/panel_modedit_display_options.h

@ -30,7 +30,7 @@ class PAGED_DIALOG;
class PANEL_MODEDIT_DISPLAY_OPTIONS : public wxPanel
{
public:
PANEL_MODEDIT_DISPLAY_OPTIONS( FOOTPRINT_EDIT_FRAME* aParent, PAGED_DIALOG* aWindow );
PANEL_MODEDIT_DISPLAY_OPTIONS( FOOTPRINT_EDIT_FRAME* aFrame, PAGED_DIALOG* aParent );
private:
bool TransferDataToWindow() override;

3390
pcbnew/dialogs/panel_setup_feature_constraints_base.fbp
File diff suppressed because it is too large
View File

Loading…
Cancel
Save