From 139168b5f205f562dc87ff799f16ccea26db1ac1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 30 Mar 2007 20:41:38 +0000 Subject: [PATCH] * src/text3.C (dispatch): revert previous fix to 3143 * src/text.C (breakParagraph): setCursor does not set current_font when applied to a CursorSlice (fixes bug 3143) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17654 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 4 ++-- src/text3.C | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/text.C b/src/text.C index 9b37eaa07c..b96624bdac 100644 --- a/src/text.C +++ b/src/text.C @@ -653,9 +653,9 @@ void LyXText::breakParagraph(LCursor & cur, bool keep_layout) // This check is necessary. Otherwise the new empty paragraph will // be deleted automatically. And it is more friendly for the user! if (cur.pos() != 0 || isempty) - setCursor(cur.top(), cur.pit() + 1, 0); + setCursor(cur, cur.pit() + 1, 0); else - setCursor(cur.top(), cur.pit(), 0); + setCursor(cur, cur.pit(), 0); } diff --git a/src/text3.C b/src/text3.C index d75e34ab4c..6af8743524 100644 --- a/src/text3.C +++ b/src/text3.C @@ -661,8 +661,6 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd) case LFUN_BREAK_PARAGRAPH: cap::replaceSelection(cur); breakParagraph(cur, 0); - //Reset text style to default - setFont(cur, LyXFont(LyXFont::ALL_INHERIT), 0); cur.resetAnchor(); bv->switchKeyMap(); break;