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
This commit is contained in:
Dekel Tsur 2001-01-21 21:00:42 +00:00
parent 94e3081b08
commit 2b09042cc5

View File

@ -144,6 +144,7 @@ void FormRef::updateBrowser(vector<string> 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<string> 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<int>(cit - keys.begin());
fl_set_browser_topline(dialog_->browser, max(i-5, 1));