From 8b3245d67a55c1894b545766928185680eae9e2f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 20 Oct 2004 05:46:47 +0000
Subject: [PATCH] minor fix: don't change xyzv::eps permanently in smooth()

---
 Common/Views.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Common/Views.cpp b/Common/Views.cpp
index e87249c43d..17fc69c8dd 100644
--- a/Common/Views.cpp
+++ b/Common/Views.cpp
@@ -1,4 +1,4 @@
-// $Id: Views.cpp,v 1.137 2004-10-16 16:13:34 geuzaine Exp $
+// $Id: Views.cpp,v 1.138 2004-10-20 05:46:47 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -1212,6 +1212,7 @@ void smooth_list(List_T * list, int nbList, double *min, double *max,
 
 void Post_View::smooth()
 {
+  double old_eps = xyzv::eps;
   xyzv::eps = CTX.lc * 1.e-8;
 
   if(NbSL || NbST || NbSQ || NbSS || NbSH || NbSI || NbSY) {
@@ -1233,6 +1234,8 @@ void Post_View::smooth()
     smooth_list(SY, NbSY, &Min, &Max, NbTimeStep, 5, con);
     Changed = 1;
   }
+
+  xyzv::eps = old_eps;  
 }
 
 // Transformation
-- 
GitLab