mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Fix bug #7014. The problem here is that we get DEFSKIP if we don't
recognize the argument, but that leads to an infinite loop. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36012 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bbb8671328
commit
01af564dc2
@ -645,11 +645,11 @@ string BufferParams::readToken(Lexer & lex, string const & token,
|
||||
pimpl_->indentation = HSpace(indentation);
|
||||
} else if (token == "\\defskip") {
|
||||
lex.next();
|
||||
string defskip = lex.getString();
|
||||
if (defskip == "defskip")
|
||||
// this is invalid
|
||||
defskip = "medskip";
|
||||
string const defskip = lex.getString();
|
||||
pimpl_->defskip = VSpace(defskip);
|
||||
if (pimpl_->defskip.kind() == VSpace::DEFSKIP)
|
||||
// that is invalid
|
||||
pimpl_->defskip = VSpace(VSpace::MEDSKIP);
|
||||
} else if (token == "\\quotes_language") {
|
||||
string quotes_lang;
|
||||
lex >> quotes_lang;
|
||||
|
Loading…
Reference in New Issue
Block a user