Fix bug #7983: Do not modify params before we know we have

something valid!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40616 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2012-01-15 16:47:50 +00:00
parent dac462c96b
commit bed648d0b5
2 changed files with 3 additions and 1 deletions

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

View File

@ -170,6 +170,8 @@ What's new
- Show a message box if the current spell checker has no dictionaries (bug 7884).
- Fix problem where box gets modifications intended for table (bug 7983).
* DOCUMENTATION AND LOCALIZATION