From de36820a5a8b11258a3cc5139a363c9425795910 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Wed, 5 Nov 2003 09:59:40 +0000 Subject: [PATCH] make LFUN_GOTO_PARAGRAPH work with deep nestings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8041 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/lyxfunc.C | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 42db83d324..a80ea7357d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-11-05 Alfredo Braunstein + + * lyxfunc.C (dispatch): make LFUN_GOTO_PARAGRAPH work with deep + nestings + 2003-11-04 André Pönitz * cursor.[Ch]: restructure diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 2c5c7356d4..415b4192bb 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1404,14 +1404,9 @@ void LyXFunc::dispatch(FuncRequest const & func, bool verbose) << " 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); -- 2.39.5