Skip to content
Snippets Groups Projects
Commit b7a9342d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

safeguard

parent 1f476755
No related branches found
No related tags found
No related merge requests found
// $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 // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -43,6 +43,7 @@ static void storeElementsInEntities(GModel *m, ...@@ -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 it = map.begin();
std::map<int, std::vector<MElement*> >::const_iterator ite = map.end(); std::map<int, std::vector<MElement*> >::const_iterator ite = map.end();
for(; it != ite; ++it){ for(; it != ite; ++it){
if(!it->second.size()) continue;
int numEdges = it->second[0]->getNumEdges(); int numEdges = it->second[0]->getNumEdges();
switch(numEdges){ switch(numEdges){
case 1: case 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment