mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user