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 91144582a0
commit dbb5219dc7
1 changed files with 4 additions and 1 deletions

View File

@ -1699,7 +1699,10 @@ get_measure2(
goto err_ret1;
}
// 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)) {
sprintf(errbuf, "out of interval\n");