mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +00:00
* 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:
parent
0edd3bf6e0
commit
139168b5f2
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user