pcbnew, DIALOG_PLOT: fix a cosmetice issue: a SVG option was sometimes shown

when the PDF plotter was selected.
This commit is contained in:
jean-pierre charras 2020-06-06 20:50:24 +02:00
parent 2cbae18598
commit 74051be3b7
1 changed files with 5 additions and 3 deletions

View File

@ -399,9 +399,6 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
switch( getPlotFormat() )
{
case PLOT_FORMAT::SVG:
m_PlotOptionsSizer->Show( m_svgOptionsSizer );
KI_FALLTHROUGH;
case PLOT_FORMAT::PDF:
m_drillShapeOpt->Enable( true );
m_plotModeOpt->Enable( false );
@ -420,6 +417,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
m_forcePSA4OutputOpt->Enable( false );
m_forcePSA4OutputOpt->SetValue( false );
if( getPlotFormat() == PLOT_FORMAT::SVG )
m_PlotOptionsSizer->Show( m_svgOptionsSizer );
else
m_PlotOptionsSizer->Hide( m_svgOptionsSizer );
m_PlotOptionsSizer->Hide( m_GerberOptionsSizer );
m_PlotOptionsSizer->Hide( m_HPGLOptionsSizer );
m_PlotOptionsSizer->Hide( m_PSOptionsSizer );