From 66ea380cc206a2a8604c88fa6dc3f3e8f169d1d0 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 11 Mar 2008 22:51:08 +0000
Subject: [PATCH] fix "premature end of file" ob

---
 Geo/GModelIO_Mesh.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp
index 0916eb09b9..5bedf5f37e 100644
--- a/Geo/GModelIO_Mesh.cpp
+++ b/Geo/GModelIO_Mesh.cpp
@@ -1,4 +1,4 @@
-// $Id: GModelIO_Mesh.cpp,v 1.41 2008-03-10 16:01:15 geuzaine Exp $
+// $Id: GModelIO_Mesh.cpp,v 1.42 2008-03-11 22:51:08 geuzaine Exp $
 //
 // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
 //
@@ -452,12 +452,14 @@ int GModel::readMSH(const std::string &name)
       else
 	_vertexMapCache = vertexMap;
       postpro = true;
+      break;
 
     }
     else if(!strncmp(&str[1], "ElementData", 11)) {
 
       // there's some element post-processing data to read later on
       postpro = true;
+      break;
 
     }
 
-- 
GitLab