]> git.lyx.org Git - features.git/commitdiff
Minor cleanup.
authorRichard Heck <rgheck@lyx.org>
Fri, 3 May 2013 01:23:11 +0000 (21:23 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 3 May 2013 01:23:11 +0000 (21:23 -0400)
src/Paragraph.cpp

index be955097dce86aa5468e71463ef051e0197dfdea..c7e65650e83d6d4f1484bf51830bde77ce8c7213 100644 (file)
@@ -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;
                        }