From: Enrico Forestieri Date: Sun, 18 May 2014 15:34:11 +0000 (+0200) Subject: Disregard font properties changes when inserting a separator. X-Git-Tag: 2.2.0alpha1~1935 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0616c8fe329d79a914a5944dc2a42b98cdcec990;p=lyx.git Disregard font properties changes when inserting a separator. This allows to output a simple blank line instead of strange constructs. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 286d5bb7dc..b12f09478d 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1089,6 +1089,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "parbreak")); breakParagraph(cur); } + Font const f(inherit_font, cur.current_font.language()); + pars_[cur.pit() - 1].resetFonts(f); } else { breakParagraph(cur, cmd.argument() == "inverse"); }