]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Fix bug #7975 following suggestions made by JMarc there.
[lyx.git] / src / insets / InsetBox.cpp
index 03cdc318a4bd3aef4acf0fa5f897f8879f737e62..ec48bd20b1184cf5904f8728b20d25382827d510 100644 (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);
 }