From 8e23cfdbdc8fb06999ba2c964c86704d15131ecc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 2 May 2013 21:23:11 -0400 Subject: [PATCH] Minor cleanup. --- src/Paragraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index be955097dc..c7e65650e8 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2879,7 +2879,7 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf, if (isDeleted(i)) continue; - Font font = getFont(buf.masterBuffer()->params(), i, outerfont); + Font const font = getFont(buf.masterBuffer()->params(), i, outerfont); bool const at_start = (i == initial); // emphasis @@ -2921,7 +2921,7 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf, if (font.fontInfo().series() == BOLD_SERIES) { xs << html::StartTag("b"); bold_flag = true; - } else if (bold_flag && i != initial) { + } else if (bold_flag && !at_start) { xs << html::EndTag("b"); bold_flag = false; }