From d2680e0a12287f01f358391f9a56fd5f4bc57fa3 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 22 Feb 2008 20:29:56 +0000
Subject: [PATCH] *** empty log message ***

---
 Geo/GEdge.h   | 1 +
 Geo/GFace.cpp | 4 ++--
 Geo/GFace.h   | 1 +
 Geo/GRegion.h | 1 +
 4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Geo/GEdge.h b/Geo/GEdge.h
index 481deb1245..e206eee5d3 100644
--- a/Geo/GEdge.h
+++ b/Geo/GEdge.h
@@ -26,6 +26,7 @@
 #include "SPoint3.h"
 #include "SPoint2.h"
 
+class MElement;
 class MLine;
 class ExtrudeParams;
 
diff --git a/Geo/GFace.cpp b/Geo/GFace.cpp
index 4b848c33dc..c2d574b261 100644
--- a/Geo/GFace.cpp
+++ b/Geo/GFace.cpp
@@ -1,4 +1,4 @@
-// $Id: GFace.cpp,v 1.55 2008-02-22 20:28:07 geuzaine Exp $
+// $Id: GFace.cpp,v 1.56 2008-02-22 20:29:56 geuzaine Exp $
 //
 // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
 //
@@ -81,7 +81,7 @@ int GFace::getNumElements()
 MElement *GFace::getElement(int index)
 { 
   if(index < triangles.size())
-    return triangles[i];
+    return triangles[index];
   else if(index < triangles.size() + quadrangles.size())
     return quadrangles[index - triangles.size()];
   return 0;
diff --git a/Geo/GFace.h b/Geo/GFace.h
index 3e8a1ddd3e..b4453f6aed 100644
--- a/Geo/GFace.h
+++ b/Geo/GFace.h
@@ -27,6 +27,7 @@
 #include "SVector3.h"
 #include "Pair.h"
 
+class MElement;
 class MTriangle;
 class MQuadrangle;
 class ExtrudeParams;
diff --git a/Geo/GRegion.h b/Geo/GRegion.h
index eebcc75864..09c80b92ca 100644
--- a/Geo/GRegion.h
+++ b/Geo/GRegion.h
@@ -22,6 +22,7 @@
 
 #include "GEntity.h"
 
+class MElement;
 class MTetrahedron;
 class MHexahedron;
 class MPrism;
-- 
GitLab