From daf7a47c6c47b34251e8fc6d22a768bf55a2f885 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 11 Mar 2002 17:59:21 +0000
Subject: [PATCH] Fix play button bug; fix small bug for tensor option

---
 Common/DefaultOptions.h | 2 +-
 Common/Options.cpp      | 9 ++++-----
 Makefile                | 4 ++--
 doc/CONTRIBUTORS        | 6 +++++-
 4 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index abf227144c..db02fbeeb5 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -879,7 +879,7 @@ StringXNumber ViewOptions_Number[] = {
     "Show time value (or time step) if NbTimeStep > 1?" },
   { F|O, "SmoothNormals" , opt_view_smooth_normals , 0. ,
     "Smooth the normals?" },
-  { F|O,   "TensorType" , opt_view_tensor_type , 0. ,
+  { F|O, "TensorType" , opt_view_tensor_type , 0. ,
     "Tensor Visualization Type" },
   { F,   "TimeStep" , opt_view_timestep , 0. ,
     "Current time step displayed" },
diff --git a/Common/Options.cpp b/Common/Options.cpp
index 276bb27db6..15c4ae7273 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -1,4 +1,4 @@
-// $Id: Options.cpp,v 1.74 2002-03-10 23:23:33 remacle Exp $
+// $Id: Options.cpp,v 1.75 2002-03-11 17:59:21 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "GmshUI.h"
@@ -2084,10 +2084,10 @@ double opt_view_nb_timestep(OPT_ARGS_NUM){
   if(action & GMSH_SET) 
     v->NbTimeStep = (int)val;
 #ifdef _FLTK
-  if(WID && (action & GMSH_GUI) && (num == WID->view_number)){
+  if(WID && (action & GMSH_GUI) && (num == WID->view_number))
     WID->view_value[50]->maximum(v->NbTimeStep-1);
+  if(WID)
     WID->check_anim_buttons();
-  }
 #endif
   return v->NbTimeStep;
 }
@@ -2634,7 +2634,6 @@ double opt_view_range_type(OPT_ARGS_NUM){
 double opt_view_tensor_type(OPT_ARGS_NUM){
   GET_VIEW(0.) ;
   if(action & GMSH_SET){
-    printf("type = %d\n",(int)val);
     v->TensorType = (int)val;
     v->Changed = 1;
   }
@@ -2644,7 +2643,7 @@ double opt_view_tensor_type(OPT_ARGS_NUM){
     WID->view_butt[71]->value(v->TensorType==DRAW_POST_EIGENVECTORS);
   }
 #endif
-  return v->RangeType;
+  return v->TensorType;
 }
 double opt_view_arrow_type(OPT_ARGS_NUM){
   GET_VIEW(0.) ;
diff --git a/Makefile b/Makefile
index a953018d69..50a744c967 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.191 2002-03-10 23:23:33 remacle Exp $
+# $Id: Makefile,v 1.192 2002-03-11 17:59:21 geuzaine Exp $
 
 GMSH_MAJOR_VERSION = 1
 GMSH_MINOR_VERSION = 34
@@ -136,7 +136,7 @@ tag:
 	echo "              0.0001 * (double)GMSH_PATCH_VERSION)"     >> Common/GmshVersion.h
 	echo "#define GMSH_DATE     \"`date`\""      >> Common/GmshVersion.h
 	echo "#define GMSH_HOST     \"`hostname`\""  >> Common/GmshVersion.h
-	echo "#define GMSH_PACKAGER \"`who -m`\""    >> Common/GmshVersion.h
+	echo "#define GMSH_PACKAGER \"`whoami`\""    >> Common/GmshVersion.h
 	echo "#define GMSH_OS       \"`uname -sr`\"" >> Common/GmshVersion.h
 
 initialtag:
diff --git a/doc/CONTRIBUTORS b/doc/CONTRIBUTORS
index 7949e16d1e..982084de54 100644
--- a/doc/CONTRIBUTORS
+++ b/doc/CONTRIBUTORS
@@ -1,4 +1,4 @@
-$Id: CONTRIBUTORS,v 1.10 2002-02-14 17:09:45 geuzaine Exp $
+$Id: CONTRIBUTORS,v 1.11 2002-03-11 17:59:21 geuzaine Exp $
 
 Gmsh is copyright (c) 1997-2002 by
 
@@ -8,9 +8,13 @@ Gmsh is copyright (c) 1997-2002 by
 Parts of the code have been contributed by
 
     David Colignon <david.colignon@ulg.ac.be>
+      - New colormaps
     Patrick Dular <patrick.dular@ulg.ac.be>
+      - Transfinite mesh fixes
     Marc Um� <Marc.Ume@digitalgraphics.be>
+      - Original list code
     Laurent Stainier <l.stainier@ulg.ac.be>
+      - Mac OS port
 
 Special thanks to the following folks who have greatly contributed by
 providing fresh ideas on theoretical or programming topics, or who
-- 
GitLab