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:
Richard Heck 2010-11-03 20:12:18 +00:00
parent bbb8671328
commit 01af564dc2

View File

@ -645,11 +645,11 @@ string BufferParams::readToken(Lexer & lex, string const & token,
pimpl_->indentation = HSpace(indentation); pimpl_->indentation = HSpace(indentation);
} else if (token == "\\defskip") { } else if (token == "\\defskip") {
lex.next(); lex.next();
string defskip = lex.getString(); string const defskip = lex.getString();
if (defskip == "defskip")
// this is invalid
defskip = "medskip";
pimpl_->defskip = VSpace(defskip); pimpl_->defskip = VSpace(defskip);
if (pimpl_->defskip.kind() == VSpace::DEFSKIP)
// that is invalid
pimpl_->defskip = VSpace(VSpace::MEDSKIP);
} else if (token == "\\quotes_language") { } else if (token == "\\quotes_language") {
string quotes_lang; string quotes_lang;
lex >> quotes_lang; lex >> quotes_lang;