From 915e114c36b40804037fe02612f8900246030817 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 3 Dec 2006 18:41:08 +0000
Subject: [PATCH] don't put the cut plane options in the disabled group (forces
 to compute all even if only want to show cut)

---
 Fltk/GUI.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp
index 1340fc1f9d..6309c54813 100644
--- a/Fltk/GUI.cpp
+++ b/Fltk/GUI.cpp
@@ -1,4 +1,4 @@
-// $Id: GUI.cpp,v 1.580 2006-12-03 18:04:11 geuzaine Exp $
+// $Id: GUI.cpp,v 1.581 2006-12-03 18:41:08 geuzaine Exp $
 //
 // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
 //
@@ -2442,7 +2442,7 @@ void GUI::create_option_window()
       mesh_butt[16]->type(FL_TOGGLE_BUTTON);
       mesh_butt[16]->callback(mesh_options_ok_cb, (void*)"mesh_cut_plane");
 
-      mesh_cut_plane = new Fl_Group(L + 2 * WB, 2 * WB + 2 * BH, width - 2 * WB, 6 * BH, 0);
+      mesh_cut_plane = new Fl_Group(L + 2 * WB, 2 * WB + 2 * BH, width - 2 * WB, 4 * BH, 0);
 
       int ii = fontsize;
       Fl_Button *invert = new Fl_Button(L + 2 * WB, 2 * WB + 2 * BH, ii, 4*BH, "-");
@@ -2477,6 +2477,8 @@ void GUI::create_option_window()
       mesh_value[17]->maximum(1.0);
       mesh_value[17]->callback(mesh_options_ok_cb);
 
+      mesh_cut_plane->end();
+
       mesh_butt[22] = new Fl_Check_Button(L + 2 * WB, 2 * WB + 6 * BH, BW, BH, "Draw only intersecting volume layer");
       mesh_butt[22]->type(FL_TOGGLE_BUTTON);
       mesh_butt[22]->callback(mesh_options_ok_cb);
@@ -2485,8 +2487,6 @@ void GUI::create_option_window()
       mesh_butt[23]->type(FL_TOGGLE_BUTTON);
       mesh_butt[23]->callback(mesh_options_ok_cb);
 
-      mesh_cut_plane->end();
-
       o->end();
     }
     {
-- 
GitLab