From b7a9342d57a1c9a2449fcf911408c552fe7e1cff Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 18 Aug 2006 16:54:40 +0000 Subject: [PATCH] safeguard --- Geo/GModelIO.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO.cpp b/Geo/GModelIO.cpp index f76b910891..9281527f68 100644 --- a/Geo/GModelIO.cpp +++ b/Geo/GModelIO.cpp @@ -1,4 +1,4 @@ -// $Id: GModelIO.cpp,v 1.23 2006-08-18 15:13:34 geuzaine Exp $ +// $Id: GModelIO.cpp,v 1.24 2006-08-18 16:54:40 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -43,6 +43,7 @@ static void storeElementsInEntities(GModel *m, std::map<int, std::vector<MElement*> >::const_iterator it = map.begin(); std::map<int, std::vector<MElement*> >::const_iterator ite = map.end(); for(; it != ite; ++it){ + if(!it->second.size()) continue; int numEdges = it->second[0]->getNumEdges(); switch(numEdges){ case 1: -- GitLab