fix so it works on show. Angus, please check.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6531 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-18 21:26:52 +00:00
parent b596bc71f2
commit 561bf82e7a
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-03-18 John Levon <levon@movementarian.org>
* ControlParagraph.C: make reading of params succeed
2003-03-13 Rob Lahaye <lahaye@snu.ac.kr>
* ControlChanges.[Ch]: ControlChanges::find() returns the bool

View File

@ -48,7 +48,7 @@ bool ControlParagraph::initialiseParams(string const & data)
lex.next();
bool const accept = lex.getBool();
action = accept ? 1 : 2;
} else {
} else if (!token.empty()) {
// Unrecognised token
return false;
}
@ -71,6 +71,9 @@ bool ControlParagraph::initialiseParams(string const & data)
lex.next();
string const token = lex.getString();
if (token.empty())
continue;
int Int = 0;
if (token == "\\alignpossible" ||
token == "\\aligndefault" ||
@ -92,8 +95,9 @@ bool ControlParagraph::initialiseParams(string const & data)
ininset_ = Int;
}
}
if (nset != 3)
if (nset != 3) {
return false;
}
// If "update", then set the activation status of the button controller
if (action > 0) {