-void InsetFormula::read(string const & s)
-{
- if (s.size()) {
- bool res = mathed_parse_normal(par_, s);
-
- if (!res)
- res = mathed_parse_normal(par_, "$" + s + "$");
-
- if (!res) {
- lyxerr << "cannot interpret '" << s << "' as math\n";
- par_ = MathAtom(new MathHullInset("simple"));
- }
- }
- metrics();
- updatePreview();
-}
-