From 8037292e44913976607c77dee675654a9d95f30a Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 30 Nov 2010 19:16:19 +0100 Subject: [PATCH] bugfix for the bugfix --- src/shapes/obj.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shapes/obj.cpp b/src/shapes/obj.cpp index c372e93e..6bb2dc3d 100644 --- a/src/shapes/obj.cpp +++ b/src/shapes/obj.cpp @@ -41,6 +41,8 @@ public: /// Fetch a line from the stream, while handling line breaks with backslashes if (!std::getline(is, line)) return false; + if (line == "") + return true; int lastCharacter = line.size()-1; while (lastCharacter >= 0 && (line[lastCharacter] == '\r' ||