From ac7cb19b328d8fa440976516dad8b8e588053c40 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 31 Jul 2001 11:48:27 +0000
Subject: [PATCH] oups, forgot a test

---
 Graphics/Mesh.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Graphics/Mesh.cpp b/Graphics/Mesh.cpp
index 343de43776..f9a2bcc48f 100644
--- a/Graphics/Mesh.cpp
+++ b/Graphics/Mesh.cpp
@@ -1,4 +1,4 @@
-// $Id: Mesh.cpp,v 1.34 2001-07-31 10:41:38 geuzaine Exp $
+// $Id: Mesh.cpp,v 1.35 2001-07-31 11:48:27 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "GmshUI.h"
@@ -75,7 +75,7 @@ void Draw_Mesh (Mesh *M) {
   if(CTX.mesh.hidden) glEnable(GL_POLYGON_OFFSET_FILL);
 
   // draw the bbox of the mesh in fast redraw mode if there is no geometry
-  if(!CTX.mesh.draw && !Tree_Nbr(M->Points)){
+  if(!CTX.mesh.draw && Tree_Nbr(M->Vertices) && !Tree_Nbr(M->Points)){
     glColor4ubv((GLubyte*)&CTX.color.fg);
     glBegin(GL_LINE_LOOP);
     glVertex3d(CTX.min[0], CTX.min[1], CTX.min[2]);
-- 
GitLab