From d23432f6f73bb19774ccde3763eae83b31abac63 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 23 Jan 2013 20:15:13 +0000 Subject: [PATCH] tweak --- Fltk/FlGui.cpp | 3 ++- Fltk/graphicWindow.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index e8d5de6c85..8e92bd367c 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -661,7 +661,8 @@ void FlGui::setStatus(const std::string &msg, bool opengl) { if(!opengl){ static char buff[1024]; - strncpy(buff, msg.c_str(), sizeof(buff) - 1); + std::string tmp = std::string(" ") + msg; + strncpy(buff, tmp.c_str(), sizeof(buff) - 1); buff[sizeof(buff) - 1] = '\0'; for(unsigned int i = 0; i < graph.size(); i++){ graph[i]->getProgress()->label(buff); diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp index f9ec20efb1..11faa56c8f 100644 --- a/Fltk/graphicWindow.cpp +++ b/Fltk/graphicWindow.cpp @@ -2711,7 +2711,7 @@ graphicWindow::graphicWindow(bool main, int numTiles, bool detachedMenu) _butt[i]->align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP); } - x += 6; + x += 4; _label = new Fl_Progress(x, mh + glheight + mheight + 2, width - x, sht); _label->box(FL_FLAT_BOX); _label->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE | FL_ALIGN_CLIP); -- GitLab