Fix bug in xforms citation dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5406 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-10-15 09:09:48 +00:00
parent c7b1bd5a00
commit 2470016e1a
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-15 Angus Leeming <leeming@lyx.org>
* FormCitation.C (updateBrowser): deselect the highlighted item when
updating the browser.
2002-10-14 Dekel Tsur <dekelts@tau.ac.il>
* FontInfo.C (query): Ignore bogus matches of scalable fonts.

View File

@ -471,8 +471,11 @@ void FormCitation::updateBrowser(FL_OBJECT * browser,
// changed by loading the contents of the vec...
vector<string> browser_keys = getVector(browser);
if (browser_keys == keys)
if (browser_keys == keys) {
fl_deselect_browser(browser);
fl_set_browser_topline(browser, 1);
return;
}
// They will be changed. Proceed.
fl_clear_browser(browser);