From 2470016e1a8b53eaef1276cf985ffb88b334ac4d Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 15 Oct 2002 09:09:48 +0000 Subject: [PATCH] Fix bug in xforms citation dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5406 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/FormCitation.C | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 1c12bebbd3..76c73d9be4 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-10-15 Angus Leeming + + * FormCitation.C (updateBrowser): deselect the highlighted item when + updating the browser. + 2002-10-14 Dekel Tsur * FontInfo.C (query): Ignore bogus matches of scalable fonts. diff --git a/src/frontends/xforms/FormCitation.C b/src/frontends/xforms/FormCitation.C index 1baba09b8c..fbb0a5313f 100644 --- a/src/frontends/xforms/FormCitation.C +++ b/src/frontends/xforms/FormCitation.C @@ -471,8 +471,11 @@ void FormCitation::updateBrowser(FL_OBJECT * browser, // changed by loading the contents of the vec... vector 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);