Fix QA crash: Pgm is null in test suite
This commit is contained in:
parent
59517ac24d
commit
4f555e7794
|
@ -139,7 +139,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
|
||||||
m_skipNPTH_Pads = false;
|
m_skipNPTH_Pads = false;
|
||||||
|
|
||||||
// TODO(JE) Is it an issue for this to be tied to Pgm()?
|
// 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 )
|
void PCB_PLOT_PARAMS::SetGerberPrecision( int aPrecision )
|
||||||
|
|
Loading…
Reference in New Issue