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:
Richard Heck 2012-01-15 16:43:03 +00:00
parent 07b2898afe
commit 07c49ed324

View File

@ -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);
}