mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
b596bc71f2
commit
561bf82e7a
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user