Fix QA crash: Pgm is null in test suite

This commit is contained in:
Jon Evans 2020-02-20 07:46:50 -05:00
parent 59517ac24d
commit 4f555e7794
1 changed files with 1 additions and 1 deletions

View File

@ -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 )