fix and document the scale keyword

This commit is contained in:
Albert Cahalan 2004-11-25 06:45:03 +00:00
parent 8be0d5be48
commit f0e9d7b8c3
3 changed files with 20 additions and 2 deletions

View file

@ -8547,7 +8547,7 @@ static info_type * loadinfo(const char * const fname)
if (tmp > 0.0001 && tmp < 10000.0)
inf.ratio = tmp;
}
else if (strchr(cp,':'))
else if (strchr(cp,'/'))
{
tmp = strtod(cp,&cp);
while(*cp && !isdigit(*cp))
@ -8556,7 +8556,7 @@ static info_type * loadinfo(const char * const fname)
if (tmp>0.0001 && tmp<10000.0 && tmp2>0.0001 && tmp2<10000.0 && tmp/tmp2>0.0001 && tmp/tmp2<10000.0)
inf.ratio = tmp/tmp2;
}
else if (strchr(cp,'/'))
else if (strchr(cp,':'))
{
tmp = strtod(cp,&cp);
while(*cp && !isdigit(*cp))