* 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
This commit is contained in:
Jean-Marc Lasgouttes 2007-03-30 20:41:38 +00:00
parent 0edd3bf6e0
commit 139168b5f2
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;