From 0eb4fa2d46d581ed5183d44b4aa79e2ffd4f2607 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 24 Jun 2005 01:17:58 +0000 Subject: [PATCH] fixed crash when using Plugin(Evaluate) in a script ("v->" -> "v1->") --- Plugin/Evaluate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin/Evaluate.cpp b/Plugin/Evaluate.cpp index 31145177f3..1504593e47 100644 --- a/Plugin/Evaluate.cpp +++ b/Plugin/Evaluate.cpp @@ -1,4 +1,4 @@ -// $Id: Evaluate.cpp,v 1.20 2005-04-01 22:14:56 geuzaine Exp $ +// $Id: Evaluate.cpp,v 1.21 2005-06-24 01:17:58 geuzaine Exp $ // // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // @@ -240,7 +240,7 @@ Post_View *GMSH_EvaluatePlugin::execute(Post_View * v) Post_View *v1 = *(Post_View **)List_Pointer(CTX.post.list, iView); - if(timeStep > v->NbTimeStep - 1){ + if(timeStep > v1->NbTimeStep - 1){ Msg(GERROR, "Invalid time step (%d) in View[%d]: using step 0 instead", timeStep, v1->Index); timeStep = 0; -- GitLab