]> git.lyx.org Git - features.git/blobdiff - src/Layout.cpp
Fix computation of InsetLayout arguments for InsetText
[features.git] / src / Layout.cpp
index b9674772e22abdcebebf72cfee6630fdedc2da65..3d1d78136018f859af6d41d801ab3854443b37c1 100644 (file)
@@ -1424,6 +1424,13 @@ void Layout::write(ostream & os) const
 }
 
 
+bool Layout::hasArgs() const
+{
+       return !latexargs_.empty() || !postcommandargs_.empty() ||
+               !itemargs_.empty();
+}
+
+
 Layout::LaTeXArgMap Layout::args() const
 {
        LaTeXArgMap args = latexargs_;