From 2b09042cc5bd2c9e24a8e112cf3322f00ab74894 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Sun, 21 Jan 2001 21:00:42 +0000 Subject: [PATCH] Yet another fix in FormRef git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1361 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/FormRef.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/xforms/FormRef.C b/src/frontends/xforms/FormRef.C index 365e844c61..bb4d0db002 100644 --- a/src/frontends/xforms/FormRef.C +++ b/src/frontends/xforms/FormRef.C @@ -144,6 +144,7 @@ void FormRef::updateBrowser(vector const & akeys) const fl_deactivate_object(dialog_->sort); fl_set_object_lcol(dialog_->browser, FL_INACTIVE); fl_set_object_lcol(dialog_->sort, FL_INACTIVE); + fl_set_input(dialog_->ref, ""); } else { fl_activate_object(dialog_->browser); fl_set_object_lcol(dialog_->browser, FL_BLACK); @@ -155,6 +156,8 @@ void FormRef::updateBrowser(vector const & akeys) const find(keys.begin(), keys.end(), ref); if (cit == keys.end()) cit = keys.begin(); + if (ref.empty()) + fl_set_input(dialog_->ref, (*cit).c_str()); int const i = static_cast(cit - keys.begin()); fl_set_browser_topline(dialog_->browser, max(i-5, 1));