]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathNest.cpp
index 85d0be52b8435f39b4ed592e6f6f50f01b1c6701..c77b24068f3bdc616fb0bc34013b6ba61b54b284 100644 (file)
@@ -337,7 +337,7 @@ MathData InsetMathNest::glue() const
 void InsetMathNest::write(WriteStream & os) const
 {
        ModeSpecifier specifier(os, currentMode());
-       docstring const latex_name = name().c_str();
+       docstring const latex_name = name();
        os << '\\' << latex_name;
        for (size_t i = 0; i < nargs(); ++i)
                os << '{' << cell(i) << '}';
@@ -352,7 +352,7 @@ void InsetMathNest::write(WriteStream & os) const
 
 void InsetMathNest::normalize(NormalStream & os) const
 {
-       os << '[' << name().c_str();
+       os << '[' << name();
        for (size_t i = 0; i < nargs(); ++i)
                os << ' ' << cell(i);
        os << ']';
@@ -361,7 +361,8 @@ void InsetMathNest::normalize(NormalStream & os) const
 
 int InsetMathNest::latex(odocstream & os, OutputParams const & runparams) const
 {
-       WriteStream wi(os, runparams.moving_arg, true, runparams.dryrun);
+       WriteStream wi(os, runparams.moving_arg, true, runparams.dryrun,
+                       runparams.encoding);
        write(wi);
        return wi.line();
 }