7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 14:01:41 +00:00

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

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 )