From 4d18c90efe1caca7d6f27b75135ead3898d12557 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 24 Apr 2009 13:43:33 +0000
Subject: [PATCH] bug fix in writeMESH

---
 Geo/GModelIO_Mesh.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp
index 7ac97734ad..83e2a59435 100644
--- a/Geo/GModelIO_Mesh.cpp
+++ b/Geo/GModelIO_Mesh.cpp
@@ -1510,7 +1510,7 @@ int GModel::writeMESH(const std::string &name, bool saveAll, double scalingFacto
     fprintf(fp, " %d\n", numQuadrangles);
     for(fiter it = firstFace(); it != lastFace(); ++it){
       if(saveAll || (*it)->physicals.size()){
-        for(unsigned int i = 0; i < (*it)->triangles.size(); i++)
+        for(unsigned int i = 0; i < (*it)->quadrangles.size(); i++)
           (*it)->quadrangles[i]->writeMESH(fp, (*it)->tag());
       }
     }
-- 
GitLab