On Mon, Oct 07, 2002 at 04:43:09PM +0930, Darren Freeman wrote: > I was working on a document, with the user guide open as the second > document. > > When adding cross references to my document, the list of choices were from > the user guide. After a while I realised you can click on "buffer" to > change to my document. But as a new user, I was confused for quite a while > by that. > > Couldn't the default "buffer" choice be the document I'm inserting the > cross-reference into?
Here is a patch that fixes this for the XForms frontend (the QT frontend behaves correctly). Is it OK to apply it (and also to 1.2.2cvs) ?
Index: frontends/xforms/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.555 diff -u -p -r1.555 ChangeLog --- frontends/xforms/ChangeLog 7 Oct 2002 10:49:02 -0000 1.555 +++ frontends/xforms/ChangeLog 8 Oct 2002 16:04:35 -0000 @@ -1,3 +1,7 @@ +2002-10-08 Dekel Tsur <[EMAIL PROTECTED]> + + * FormRef.C (update): Always list the labels of the current buffer. + 2002-10-07 Angus Leeming <[EMAIL PROTECTED]> * FormBase.C (hide): Index: frontends/xforms/FormRef.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormRef.C,v retrieving revision 1.59 diff -u -p -r1.59 FormRef.C --- frontends/xforms/FormRef.C 9 Sep 2002 09:49:47 -0000 1.59 +++ frontends/xforms/FormRef.C 8 Oct 2002 16:04:35 -0000 @@ -123,10 +123,10 @@ void FormRef::update() fl_clear_choice(dialog_->choice_document); fl_addto_choice(dialog_->choice_document, choice.c_str()); - - fl_set_choice(dialog_->choice_document, - controller().getBufferNum() + 1); } + + fl_set_choice(dialog_->choice_document, + controller().getBufferNum() + 1); string const name = controller(). getBufferName(fl_get_choice(dialog_->choice_document) - 1);