]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
remove most traces of boost::regex
[lyx.git] / src / Paragraph.cpp
index c668f3b686734b8c267a6a6e6a8bbce5035e6c67..aa6bd303041cf15c7674667c7d98196e1ad98e1d 100644 (file)
@@ -3365,7 +3365,7 @@ std::vector<docstring> Paragraph::simpleDocBookOnePar(Buffer const & buf,
 
                // If this is an InsetNewline, generate a new paragraph. Also reset the fonts, so that tags are closed in
                // this paragraph.
-               if (getInset(i) != nullptr && getInset(i)->lyxCode() == NEWLINE_CODE) {
+               if (getInset(i) && getInset(i)->lyxCode() == NEWLINE_CODE) {
                        if (!ignore_fonts)
                                xs->closeFontTags();