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;