- fixed crash caused by the wrong order in the && boolean conditions. It's incredible that the importer has never crashed before today....
This commit is contained in:
parent
fce6ab1138
commit
099a18f47c
|
@ -571,12 +571,12 @@ namespace vcg
|
||||||
tokens.clear();
|
tokens.clear();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
while ( (line[from]==' ' || line[from] == '\t' || line[from] == '\r') && from!=length)
|
while (from!=length && (line[from]==' ' || line[from] == '\t' || line[from] == '\r'))
|
||||||
from++;
|
from++;
|
||||||
if(from!=length)
|
if(from!=length)
|
||||||
{
|
{
|
||||||
to = from+1;
|
to = from+1;
|
||||||
while ( (((line[to]!=' ') && (line[to] != '\t')) || (line[to] == '\r')) && to!=length)
|
while ( to!=length && (((line[to]!=' ') && (line[to] != '\t')) || (line[to] == '\r')))
|
||||||
to++;
|
to++;
|
||||||
tokens.push_back(line.substr(from, to-from).c_str());
|
tokens.push_back(line.substr(from, to-from).c_str());
|
||||||
from = to;
|
from = to;
|
||||||
|
|
Loading…
Reference in New Issue