From d8b88a78a4b74a1cf20b32c30cd67767159cf034 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 3 Aug 2014 11:26:16 +0200 Subject: [PATCH] Fix bug with wrong baseline calculation in last paragraph Fixes: #9231 --- src/output_latex.cpp | 2 +- status.21x | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 4474d2ebe2..3a8b0c2400 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -866,6 +866,7 @@ void TeXOnePar(Buffer const & buf, // Is this really needed ? (Dekel) // We do not need to use to change the font for the last paragraph // or for a command. + // Spitz: We need for the last par, actually. See #9231. Font const font = par.empty() ? par.getLayoutFont(bparams, outerfont) @@ -874,7 +875,6 @@ void TeXOnePar(Buffer const & buf, bool const is_command = style.isCommand(); if (style.resfont.size() != font.fontInfo().size() - && nextpar && !is_command) { os << '{'; os << "\\" << from_ascii(font.latexSize()) << " \\par}"; diff --git a/status.21x b/status.21x index f7f450fa53..d58771c1bf 100644 --- a/status.21x +++ b/status.21x @@ -54,6 +54,9 @@ What's new - Do not sort advanced listings settings, since their insertion order is relevant (bug 5203). +- Fix wrong line spacing in last paragraph of a document if the font size + is non-normal (bug 9231). + * LYX2LYX -- 2.39.5