From 1e9a57c8ebd683db92aaea0e649359a30104e41b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 30 Jan 2013 07:34:08 +0000 Subject: [PATCH] --- Fltk/helpWindow.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Fltk/helpWindow.cpp b/Fltk/helpWindow.cpp index eadc4fff2e..0fabbbc992 100644 --- a/Fltk/helpWindow.cpp +++ b/Fltk/helpWindow.cpp @@ -162,12 +162,14 @@ static void browser_cb(Fl_Widget *w, void *data) if(c2.size() > 6) c2 = c2.substr(6); else c2 = ""; } - editOption(type, c1, c2); - int top = FlGui::instance()->help->browser->topline(); - help_options_cb(0, 0); - FlGui::instance()->help->browser->topline(top); - FlGui::instance()->help->browser->select(i); - drawContext::global()->draw(); + if(c1.size() && c2.size()){ + editOption(type, c1, c2); + int top = FlGui::instance()->help->browser->topline(); + help_options_cb(0, 0); + FlGui::instance()->help->browser->topline(top); + FlGui::instance()->help->browser->select(i); + drawContext::global()->draw(); + } } break; } -- GitLab