From 21007eae239a55f94e8046fe11757c598d2d944a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 20 Mar 2014 21:27:48 +0000 Subject: [PATCH] trying to fix Amdine's crash --- Fltk/onelabGroup.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp index 74f1432b4d..88e8d595a1 100644 --- a/Fltk/onelabGroup.cpp +++ b/Fltk/onelabGroup.cpp @@ -600,7 +600,8 @@ static void updateGraphs() redraw = redraw || ret; } if(redraw){ - FlGui::instance()->updateViews(true, true); + // don't delete the widgets, as this is called in widget callbacks + FlGui::instance()->updateViews(true, false); drawContext::global()->draw(); } } @@ -1691,9 +1692,6 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::function &p, int ww, int hh, void onelabGroup::rebuildTree(bool deleteWidgets) { - // FIXME: testing this for Amandine - deleteWidgets = false; - FL_NORMAL_SIZE -= CTX::instance()->deltaFontSize; _computeWidths(); -- GitLab