Remember mirror setting in print dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/5909
This commit is contained in:
Jeff Young 2020-10-08 13:26:40 +01:00
parent d305e9c715
commit 9c6977a994
4 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,7 @@ void PCBNEW_PRINTOUT_SETTINGS::Load( APP_SETTINGS_BASE* aConfig )
{
m_drillMarks = static_cast<DRILL_MARK_SHAPE_T>( cfg->m_Plot.pads_drill_mode );
m_pagination = static_cast<PAGINATION_T>( cfg->m_Plot.one_page_per_layer );
m_mirror = cfg->m_Plot.mirror;
}
}
@ -63,6 +64,7 @@ void PCBNEW_PRINTOUT_SETTINGS::Save( APP_SETTINGS_BASE* aConfig )
{
cfg->m_Plot.pads_drill_mode = m_drillMarks;
cfg->m_Plot.one_page_per_layer = m_pagination;
cfg->m_Plot.mirror = m_mirror;
}
}

View File

@ -385,6 +385,9 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
m_params.emplace_back( new PARAM<bool>( "plot.check_zones_before_plotting",
&m_Plot.check_zones_before_plotting, true ) );
m_params.emplace_back( new PARAM<bool>( "plot.mirror",
&m_Plot.mirror, false ) );
m_params.emplace_back( new PARAM<wxString>( "window.footprint_text_shown_columns",
&m_FootprintTextShownColumns, "0 1 2 3 4 5 6" ) );

View File

@ -187,6 +187,7 @@ public:
double fine_scale_y;
double ps_fine_width_adjust;
bool check_zones_before_plotting;
bool mirror;
};
struct DIALOG_REANNOTATE

View File

@ -620,7 +620,6 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
return 0;
TOOL_EVENT originalEvent = aEvent;
POINT_EDITOR* pointEditor = m_toolMgr->GetTool<POINT_EDITOR>();
DIMENSION* dimension = nullptr;
BOARD_COMMIT commit( m_frame );
GRID_HELPER grid( m_toolMgr, m_frame->GetMagneticItemsSettings() );