]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Fix bug #8083: Fix the selection of cells below multirows
[lyx.git] / src / insets / InsetBox.cpp
index a9130a7060d71ce058ff0fd0d65b2a835e566b0c..ec48bd20b1184cf5904f8728b20d25382827d510 100644 (file)
@@ -530,9 +530,9 @@ void InsetBox::validate(LaTeXFeatures & features) const
 }
 
 
-docstring InsetBox::contextMenuName() const
+string InsetBox::contextMenuName() const
 {
-       return from_ascii("context-box");
+       return "context-box";
 }
 
 
@@ -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);
 }