From 1e02e1574f391e2446ad9e983cc1cbe92e0c739c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 25 Nov 2002 04:39:42 +0000 Subject: [PATCH] Add view number check (for "link all views" option when no view is selected yet) --- Fltk/Callbacks.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index dd13626441..608823fd42 100644 --- a/Fltk/Callbacks.cpp +++ b/Fltk/Callbacks.cpp @@ -1,4 +1,4 @@ -// $Id: Callbacks.cpp,v 1.157 2002-11-17 03:56:03 geuzaine Exp $ +// $Id: Callbacks.cpp,v 1.158 2002-11-25 04:39:42 geuzaine Exp $ // // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle // @@ -787,6 +787,7 @@ void post_options_ok_cb(CALLBACK_ARGS) { WID->post_butt[2]->value()?2: WID->post_butt[3]->value()?3: 4); + opt_post_smooth(0, GMSH_SET, WID->post_butt[5]->value()); opt_post_anim_cycle(0, GMSH_SET, WID->post_butt[6]->value()); @@ -2320,6 +2321,8 @@ void view_options_timestep_incr_cb(CALLBACK_ARGS){ void view_options_ok_cb(CALLBACK_ARGS){ int i, links, force=0; + if((long int)data<0) return; + links = (int)opt_post_link(0, GMSH_GET, 0); for(i=0 ; i<List_Nbr(CTX.post.list) ; i++){ -- GitLab