diff --git a/pcbnew/pcb_general_settings.cpp b/pcbnew/pcb_general_settings.cpp index e94de21f6d..55e077696f 100644 --- a/pcbnew/pcb_general_settings.cpp +++ b/pcbnew/pcb_general_settings.cpp @@ -28,21 +28,24 @@ PCB_GENERAL_SETTINGS::PCB_GENERAL_SETTINGS( FRAME_T aFrameType ) { switch( m_frameType ) { - case FRAME_PCB: - Add( "LegacyAutoDeleteOldTrack", &m_legacyAutoDeleteOldTrack, true ); - Add( "LegacyUse45DegreeTracks",&m_legacyUse45DegreeTracks, true); - Add( "LegacyUseTwoSegmentTracks", &m_legacyUseTwoSegmentTracks, true); - Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); - Add( "MagneticPads", reinterpret_cast( &m_magneticPads ), CAPTURE_CURSOR_IN_TRACK_TOOL ); - Add( "MagneticTracks", reinterpret_cast( &m_magneticTracks ), CAPTURE_CURSOR_IN_TRACK_TOOL ); - Add( "EditActionChangesTrackWidth", &m_editActionChangesTrackWidth, false ); - Add( "DragSelects", &m_dragSelects, true ); - break; + case FRAME_PCB: + Add( "LegacyAutoDeleteOldTrack", &m_legacyAutoDeleteOldTrack, true ); + Add( "LegacyUse45DegreeTracks",&m_legacyUse45DegreeTracks, true); + Add( "LegacyUseTwoSegmentTracks", &m_legacyUseTwoSegmentTracks, true); + Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); + Add( "MagneticPads", reinterpret_cast( &m_magneticPads ), CAPTURE_CURSOR_IN_TRACK_TOOL ); + Add( "MagneticTracks", reinterpret_cast( &m_magneticTracks ), CAPTURE_CURSOR_IN_TRACK_TOOL ); + Add( "EditActionChangesTrackWidth", &m_editActionChangesTrackWidth, false ); + Add( "DragSelects", &m_dragSelects, true ); + break; - case FRAME_PCB_MODULE_EDITOR: - Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); - Add( "DragSelects", &m_dragSelects, true ); - break; + case FRAME_PCB_MODULE_EDITOR: + Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); + Add( "DragSelects", &m_dragSelects, true ); + break; + + default: + break; } }