]> git.lyx.org Git - features.git/commitdiff
Michael's "synchronise the labels with the buffer" patch.
authorAngus Leeming <leeming@lyx.org>
Fri, 16 Aug 2002 12:59:34 +0000 (12:59 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 16 Aug 2002 12:59:34 +0000 (12:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5011 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormRef.C

index 26bb9102ad1f6592f67a357483f99bb377b703e8..657de55406ff5169d5c9187589e16dc8be0c061e 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-16  Michael Schmitt <Michael.Schmitt@teststep.org>
+
+       * FormRef.C (update): Synchronise the buffer choice and the list of
+       labels if the dialog is re-opened.
+
 2002-08-15  Angus Leeming  <leeming@lyx.org>
 
        * Dialogs.C:
index f6f3f69fccef49f03bd5686ad0eb6835b586608c..4bcad71e5718c49702ecbd55fc25a796de0bb662 100644 (file)
@@ -113,7 +113,10 @@ void FormRef::update()
                              controller().getBufferNum() + 1);
        }
 
-       refs_ = controller().getLabelList(string());
+       string const name = controller().
+               getBufferName(fl_get_choice(dialog_->choice_buffer) - 1);
+       refs_ = controller().getLabelList(name);
+
        updateBrowser(refs_);
 }