mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fix some of the InsetSpace problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25014 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1f8d6daee4
commit
afbc6bd2b9
@ -441,7 +441,6 @@ void InsetSpaceParams::read(Lexer & lex)
|
|||||||
|
|
||||||
if (lex.checkFor("\\length"))
|
if (lex.checkFor("\\length"))
|
||||||
lex >> length;
|
lex >> length;
|
||||||
lex >> "\\end_inset";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -455,6 +454,7 @@ void InsetSpace::write(ostream & os) const
|
|||||||
void InsetSpace::read(Lexer & lex)
|
void InsetSpace::read(Lexer & lex)
|
||||||
{
|
{
|
||||||
params_.read(lex);
|
params_.read(lex);
|
||||||
|
lex >> "\\end_inset";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -632,7 +632,11 @@ void InsetSpace::string2params(string const & in, InsetSpaceParams & params)
|
|||||||
lex.setContext("InsetSpace::string2params");
|
lex.setContext("InsetSpace::string2params");
|
||||||
lex >> "space";
|
lex >> "space";
|
||||||
|
|
||||||
params.read(lex);
|
// There are cases, such as when we are called via getStatus() from
|
||||||
|
// Dialog::canApply(), where we are just called with "space" rather
|
||||||
|
// than a full "space \type{}\n\\end_inset".
|
||||||
|
if (lex.isOK())
|
||||||
|
params.read(lex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user