allow format like .5 in b-sources

This commit is contained in:
dwarning 2013-06-27 20:05:44 +02:00
parent 868235b3b2
commit fb1686802f
1 changed files with 1 additions and 1 deletions

View File

@ -5430,7 +5430,7 @@ inp_bsource_compat(struct line *card)
}
}
ustate = 0; /* we have a number */
} else if (isdigit(actchar)) {
} else if (isdigit(actchar) || (actchar == '.')) { /* allow .5 format too */
/* allow 100p, 5MEG etc. */
double dvalue = INPevaluate(&str_ptr, &error1, 0);
char cvalue[19];