]> git.lyx.org Git - features.git/commitdiff
Properly fix bug #9598
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 9 Jun 2015 06:18:19 +0000 (08:18 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 9 Jun 2015 06:18:19 +0000 (08:18 +0200)
Do not output \\par at the end of environments with size change if the
environment cosinsts of only one par.

src/output_latex.cpp

index 6df77f1b66fc2e57f2a8036809a61cc00a0494a8..d8b1d0b7bd77b81897741bf3a69efd5413ba524a 100644 (file)
@@ -865,7 +865,7 @@ void TeXOnePar(Buffer const & buf,
 
        if (style.resfont.size() != font.fontInfo().size()
            && (nextpar || maintext
-               || (text.inset().getLayout().isMultiPar()
+               || (text.inset().paragraphs().size() > 1
                    && text.inset().lyxCode() != CELL_CODE))
            && !is_command) {
                os << '{';