Browse Source

Fix QA crash: Pgm is null in test suite

pull/16/head
Jon Evans 6 years ago
parent
commit
4f555e7794
  1. 2
      pcbnew/pcb_plot_params.cpp

2
pcbnew/pcb_plot_params.cpp

@ -139,7 +139,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
m_skipNPTH_Pads = false;
// TODO(JE) Is it an issue for this to be tied to Pgm()?
m_colors = Pgm().GetSettingsManager().GetColorSettings();
m_colors = PgmOrNull() ? Pgm().GetSettingsManager().GetColorSettings() : nullptr;
}
void PCB_PLOT_PARAMS::SetGerberPrecision( int aPrecision )

Loading…
Cancel
Save