]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Fix broken layout file syntax
[lyx.git] / src / Paragraph.cpp
index 223d2eb53eb2942e2ab2cd29461bd551527ce9f6..ee80b94454351d0cc4aedee3d20b4c3b398fba79 100644 (file)
@@ -1461,9 +1461,9 @@ 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_->optargs != 0 || layout_->reqargs != 0)
+                       if (!layout_->latexargs().empty())
                                latexArgInsets(*owner_, os, features.runparams(),
-                                       layout_->reqargs, layout_->optargs);
+                                              layout_->latexargs());
                        else
                                os << from_ascii(layout_->latexparam());
                }