Handle lack of trailing newline in dat files. Fixes #336

felipesanches-svg
Marius Kintel 2013-05-09 14:32:43 +02:00
parent c5ebdb788b
commit 6ee78e7f68
2 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,7 @@ PolySet *SurfaceNode::evaluate_polyset(class PolySetEvaluator *) const
std::getline(stream, line);
boost::trim(line);
}
if (stream.eof()) break;
if (line.size() == 0 && stream.eof()) break;
int col = 0;
tokenizer tokens(line, sep);

View File

@ -1,2 +1,6 @@
0 1
2 3
# Comment