From c00523e504c6e28115e02a94ef491da56e29fd08 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 23 Jun 2015 17:20:28 +0000 Subject: [PATCH] fix --- Fltk/graphicWindow.cpp | 6 ++++-- Fltk/onelabGroup.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp index b664fcc224..00519b657b 100644 --- a/Fltk/graphicWindow.cpp +++ b/Fltk/graphicWindow.cpp @@ -3522,9 +3522,11 @@ void graphicWindow::fillRecentHistoryMenu() table = sysbar_table; #endif + static char recent[10][256]; for(int i = 0; i < 10; i++){ - table[4 + i].text = CTX::instance()->recentFiles[i].c_str(); - table[4 + i].user_data_ = (void*)CTX::instance()->recentFiles[i].c_str(); + strcpy(recent[i], CTX::instance()->recentFiles[i].c_str()); + table[4 + i].text = recent[i]; + table[4 + i].user_data_ = (void*)recent[i]; } #if defined(__APPLE__) diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp index 5f65a877eb..d3c1c09579 100644 --- a/Fltk/onelabGroup.cpp +++ b/Fltk/onelabGroup.cpp @@ -444,7 +444,7 @@ onelabGroup::onelabGroup(int x, int y, int w, int h, const char *l) _tree->end(); _computeWidths(); - _widgetLabelRatio = 0.48; + _widgetLabelRatio = 0.5; int BB2 = BB / 2 + 4; -- GitLab