From e7d808d6e79f280b1c2fed4f875c473633499983 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 8 Sep 2010 10:36:30 +0200 Subject: [PATCH] fix an apparent portability issue regarding std::isstream between OSX and Linux --- src/shapes/hair.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/hair.cpp b/src/shapes/hair.cpp index 1e470339..485905dd 100644 --- a/src/shapes/hair.cpp +++ b/src/shapes/hair.cpp @@ -32,7 +32,7 @@ Hair::Hair(const Properties &props) : Shape(props) { } else { std::istringstream iss(line); iss >> p.x >> p.y >> p.z; - if (iss.good()) { + if (!iss.fail()) { m_vertices.push_back(p); m_startFiber.push_back(newFiber); newFiber = false;