From e633cd78302d0a3f0a3fbae94fe1184dd2429b9d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 30 Jan 2013 19:17:47 +0000 Subject: [PATCH] tweak --- Fltk/graphicWindow.cpp | 2 +- Fltk/onelabGroup.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp index 750aeb4b91..6a7f967e21 100644 --- a/Fltk/graphicWindow.cpp +++ b/Fltk/graphicWindow.cpp @@ -2601,7 +2601,7 @@ graphicWindow::graphicWindow(bool main, int numTiles, bool detachedMenu) } x += 4; - _label = new mainWindowProgress(x, mh + glheight + mheight + 2, width - x, sht); + _label = new mainWindowProgress(x, mh + glheight + mheight + 2, width - x - WB, sht); _label->box(FL_FLAT_BOX); _label->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE | FL_ALIGN_CLIP); _label->color(FL_BACKGROUND_COLOR, FL_DARK2); // FL_DARK_GREEN diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp index eb9e5153f5..2ac556ddfe 100644 --- a/Fltk/onelabGroup.cpp +++ b/Fltk/onelabGroup.cpp @@ -473,8 +473,6 @@ static void loadDb(const std::string &name) void onelab_cb(Fl_Widget *w, void *data) { - Msg::ResetErrorCounter(); - if(!data) return; std::string action((const char*)data); @@ -555,6 +553,8 @@ void onelab_cb(Fl_Widget *w, void *data) return; } + Msg::ResetErrorCounter(); + FlGui::instance()->onelab->setButtonMode("", "stop"); if(action == "compute") initializeLoops(); -- GitLab