From 11f9838c29176828a2d1229fdaf214934d6d72d4 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 1 Mar 2004 23:19:51 +0000
Subject: [PATCH] small copy & paste bug (we tested Tree_Nbr(Points) twice
 instead of Tree_Nbr(Points) and Tree_Nbr(Vertices))

---
 Parser/OpenFile.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp
index 2b4fc1c9de..605fd707fd 100644
--- a/Parser/OpenFile.cpp
+++ b/Parser/OpenFile.cpp
@@ -1,4 +1,4 @@
-// $Id: OpenFile.cpp,v 1.49 2004-02-07 01:40:27 geuzaine Exp $
+// $Id: OpenFile.cpp,v 1.50 2004-03-01 23:19:51 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -266,8 +266,8 @@ void OpenProblem(char *name)
   ZeroHighlight(&M);
 #endif
 
-  if(!Tree_Nbr(THEM->Points) && !Tree_Nbr(THEM->Points)
-     && List_Nbr(CTX.post.list)) {
+  if(!Tree_Nbr(THEM->Points) && !Tree_Nbr(THEM->Vertices) && 
+     List_Nbr(CTX.post.list)) {
     // if there are no points or vertices and there is a view, use it
     CalculateMinMax(NULL, ((Post_View *) List_Pointer
                            (CTX.post.list,
-- 
GitLab