Please apply

thanks
john

-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.
Index: src/frontends/xforms/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v
retrieving revision 1.314
diff -u -r1.314 ChangeLog
--- src/frontends/xforms/ChangeLog      2002/03/08 13:53:30     1.314
+++ src/frontends/xforms/ChangeLog      2002/03/10 00:53:32
@@ -1,3 +1,7 @@
+2002-03-10  John Levon  <[EMAIL PROTECTED]>
+
+       * FormToc.C: make goto not reset the dialog
+ 
 2002-03-08  Juergen Spitzmueller  <[EMAIL PROTECTED]>
 
        * FormGraphics.C: Tiny stylistic correction.
Index: src/frontends/xforms/FormToc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormToc.C,v
retrieving revision 1.32
diff -u -r1.32 FormToc.C
--- src/frontends/xforms/FormToc.C      2002/02/16 15:59:50     1.32
+++ src/frontends/xforms/FormToc.C      2002/03/10 00:53:32
@@ -60,18 +60,21 @@
 
 ButtonPolicy::SMInput FormToc::input(FL_OBJECT * ob, long)
 {
+       if (ob == dialog_->browser_toc) {
+               unsigned int const choice = fl_get_browser(dialog_->browser_toc);
+
+               if (choice - 1 < toclist_.size() && choice >= 1) {
+                       controller().Goto(toclist_[choice - 1].par->id());
+               }
+               return ButtonPolicy::SMI_VALID;
+       }
+
        if (ob != dialog_->choice_toc_type) {
                updateType();
        }
  
        updateContents();
 
-       unsigned int const choice = fl_get_browser(dialog_->browser_toc);
-
-       if (choice - 1 < toclist_.size() && choice >= 1) {
-               controller().Goto(toclist_[choice - 1].par->id());
-       }
-
        return ButtonPolicy::SMI_VALID;
 }
 

Reply via email to