]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCommand.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / InsetMathCommand.C
index d74801a34249b3a74b599f0237d2f11dd4474c1f..a001ff413292120ebc161339650ffda37c85d19f 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <sstream>
 
+using lyx::docstring;
+
 using std::string;
 using std::auto_ptr;
 using std::ostringstream;
@@ -70,9 +72,9 @@ void CommandInset::write(WriteStream & os) const
 }
 
 
-string const CommandInset::screenLabel() const
+docstring const CommandInset::screenLabel() const
 {
-       return name_;
+       return lyx::from_ascii(name_);
 }