]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Fix broken layout file syntax
[lyx.git] / src / Paragraph.cpp
index 8429b015d6eacd1d621de6239f2c207ce5ab0738..ee80b94454351d0cc4aedee3d20b4c3b398fba79 100644 (file)
@@ -1461,7 +1461,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
                        // we have to provide all the optional arguments here, even though
                        // the last one is the only one we care about.
                        // Separate handling of optional argument inset.
-                       if (layout_->latexargs().size() != 0)
+                       if (!layout_->latexargs().empty())
                                latexArgInsets(*owner_, os, features.runparams(),
                                               layout_->latexargs());
                        else