Fix a crash reported by Thomas Hoffmann when using the "TARG AT=xxxx"

variant of "measure", General Form 1.
This commit is contained in:
Giles Atkinson 2023-02-18 15:36:01 +00:00 committed by Holger Vogt
parent 5bdbd83943
commit 70647c9c30
1 changed files with 4 additions and 1 deletions

View File

@ -1699,7 +1699,10 @@ get_measure2(
goto err_ret1; goto err_ret1;
} }
// measure targ // measure targ
com_measure_when(measTarg); if (measTarg->m_at == 1e99)
com_measure_when(measTarg);
else
measTarg->m_measured = measTarg->m_at;
if (isnan(measTarg->m_measured)) { if (isnan(measTarg->m_measured)) {
sprintf(errbuf, "out of interval\n"); sprintf(errbuf, "out of interval\n");