small fix I forgot

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5080 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-08-23 10:38:45 +00:00
parent 11953d3734
commit 114b7519fd
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-08-23 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxlayout.C (Read): treat LT_OPTARGS as an integer, not a bool
2002-08-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfunc.C (getStatus): handle LFUN_INSET_OPTARG

View 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();