pcbnew, DIALOG_PLOT: fix a cosmetice issue: a SVG option was sometimes shown
when the PDF plotter was selected.
This commit is contained in:
parent
2cbae18598
commit
74051be3b7
|
@ -399,9 +399,6 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
|
||||||
switch( getPlotFormat() )
|
switch( getPlotFormat() )
|
||||||
{
|
{
|
||||||
case PLOT_FORMAT::SVG:
|
case PLOT_FORMAT::SVG:
|
||||||
m_PlotOptionsSizer->Show( m_svgOptionsSizer );
|
|
||||||
KI_FALLTHROUGH;
|
|
||||||
|
|
||||||
case PLOT_FORMAT::PDF:
|
case PLOT_FORMAT::PDF:
|
||||||
m_drillShapeOpt->Enable( true );
|
m_drillShapeOpt->Enable( true );
|
||||||
m_plotModeOpt->Enable( false );
|
m_plotModeOpt->Enable( false );
|
||||||
|
@ -420,6 +417,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
|
||||||
m_forcePSA4OutputOpt->Enable( false );
|
m_forcePSA4OutputOpt->Enable( false );
|
||||||
m_forcePSA4OutputOpt->SetValue( 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_GerberOptionsSizer );
|
||||||
m_PlotOptionsSizer->Hide( m_HPGLOptionsSizer );
|
m_PlotOptionsSizer->Hide( m_HPGLOptionsSizer );
|
||||||
m_PlotOptionsSizer->Hide( m_PSOptionsSizer );
|
m_PlotOptionsSizer->Hide( m_PSOptionsSizer );
|
||||||
|
|
Loading…
Reference in New Issue