Use of lockPath in LFUN_GOTO_PARAGRAPH (to make it work with nested branches
etc):

Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.1682
diff -u -p -u -r1.1682 ChangeLog
--- ChangeLog   4 Nov 2003 12:36:52 -0000       1.1682
+++ ChangeLog   5 Nov 2003 09:50:07 -0000
@@ -1,3 +1,8 @@
+2003-11-05  Alfredo Braunstein  <[EMAIL PROTECTED]>
+
+       * lyxfunc.C (dispatch): make LFUN_GOTO_PARAGRAPH work with deep
+       nestings
+
 2003-11-04  AndrïPnitz  <[EMAIL PROTECTED]>
 
        * cursor.[Ch]: restructure
Index: lyxfunc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.534
diff -u -p -u -r1.534 lyxfunc.C
--- lyxfunc.C   4 Nov 2003 12:36:52 -0000       1.534
+++ lyxfunc.C   5 Nov 2003 09:50:10 -0000
@@ -1404,14 +1404,9 @@ void LyXFunc::dispatch(FuncRequest const
                                            << " found." << endl;
                }
 
-               if (view()->theLockingInset())
-                       view()->unlockInset(view()->theLockingInset());
 
-               LyXText * lt = view()->getLyXText();
-               if (par->inInset()) {
-                       par.inset()->edit(view(), true);
-                       lt = par->inInset()->getLyXText(view());
-               }
+               par.lockPath(view());
+               LyXText * lt = par.text() ? par.text() : view()->text;
 
                // Set the cursor
                lt->setCursor(par.pit(), 0);

Reply via email to