mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #7983: Do not modify params before we know we have
something valid! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40615 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
07b2898afe
commit
07c49ed324
@ -547,7 +547,6 @@ string InsetBox::params2string(InsetBoxParams const & params)
|
||||
|
||||
void InsetBox::string2params(string const & in, InsetBoxParams & params)
|
||||
{
|
||||
params = InsetBoxParams(string());
|
||||
if (in.empty())
|
||||
return;
|
||||
|
||||
@ -572,6 +571,7 @@ void InsetBox::string2params(string const & in, InsetBoxParams & params)
|
||||
"Expected arg 2 to be \"Box\"\n");
|
||||
}
|
||||
|
||||
params = InsetBoxParams(string());
|
||||
params.read(lex);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user