]> git.lyx.org Git - lyx.git/commitdiff
Disregard font properties changes when inserting a separator.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 18 May 2014 15:34:11 +0000 (17:34 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 18 May 2014 15:34:11 +0000 (17:34 +0200)
This allows to output a simple blank line instead of strange constructs.

src/Text3.cpp

index 286d5bb7dcbf512237d5f15ecd8e7a378c5c1d16..b12f09478d1a787db73e12adf3ddefffc547137f 100644 (file)
@@ -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");
                }