]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
compilation fixes when using lyxstring
[lyx.git] / src / mathed / formula.C
index e4bce63436ccba0758bb90c1691eac949c7a4a04..48d0b55581e30c0bd417f6a58e98afc618fa8b36 100644 (file)
@@ -1419,7 +1419,7 @@ void InsetFormula::HandleExtern(const string & arg, BufferView * bv)
        string outfile = "/tmp/lyx2" + arg + ".out";
        ostringstream os;
        par->WriteNormal(os); 
-       string code = os.str();
+       string code = os.str().c_str();
        string script = "lyx2" + arg + " '" + code + "' " + outfile;
        lyxerr << "calling: " << script << endl;
        Systemcalls cmd(Systemcalls::System, script, 0);