From 35fdb32c8324899736a809c7fff05cf187ffa386 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Wed, 9 Oct 2002 11:14:11 +0000 Subject: [PATCH] Show labels of current buffer git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5371 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/FormRef.C | 5 ++--- status.12x | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index f801ec086c..3e3666b1f6 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2002-10-09 Dekel Tsur + + * FormRef.C (update): Always list the labels of the current buffer. + 2002-09-23 Jean-Marc Lasgouttes * Toolbar_pimpl.C (layoutSelected): show shortcut in minibuffer diff --git a/src/frontends/xforms/FormRef.C b/src/frontends/xforms/FormRef.C index 72c3d01e3c..53b36d6883 100644 --- a/src/frontends/xforms/FormRef.C +++ b/src/frontends/xforms/FormRef.C @@ -107,11 +107,10 @@ void FormRef::update() fl_clear_choice(dialog_->choice_buffer); fl_addto_choice(dialog_->choice_buffer, choice.c_str()); - - fl_set_choice(dialog_->choice_buffer, - controller().getBufferNum() + 1); } + fl_set_choice(dialog_->choice_buffer, controller().getBufferNum() + 1); + string const name = controller().getBufferName(fl_get_choice(dialog_->choice_buffer) - 1); refs_ = controller().getLabelList(name); diff --git a/status.12x b/status.12x index a2662bbf8e..31f57c8747 100644 --- a/status.12x +++ b/status.12x @@ -39,6 +39,8 @@ What's new ** Bug fixes +- the reference dialog now lists the labels of the current buffer. + - fix bug where special characters in equations label confuse LyX (this was a new bug in 1.2.1)