]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.C
another fix
[lyx.git] / src / lyxlayout.C
index ca31bee99ced9f6a1830ab3d3905b1cd56f67ccc..0848e20bd6dd98f79f0075e63e521de23f78ae73 100644 (file)
@@ -249,8 +249,10 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
                        break;
 
                case LT_OPTARGS:
-                       optionalargs = lexrc.next() && lexrc.getInteger();
-                       break;
+                       if (lexrc.next()) { 
+                               optionalargs = lexrc.getInteger();
+                       }
+                       break;
 
                case LT_NEED_PROTECT:
                        needprotect = lexrc.next() && lexrc.getInteger();