]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
This moves all LyXText related LyXFuncs to BufferView::Dispatch so that they
[lyx.git] / src / mathed / formula.C
index c2e88945f8daeae4b212c11108dcac9df0f2282f..164efb4a30b84d3f15dc2b6bc3fab014d2bfc4df 100644 (file)
@@ -305,7 +305,8 @@ void InsetFormula::Read(Buffer const *, LyXLex & lex)
        // Silly hack to read labels.
        mathed_label.erase();
 
-       mathed_parse(0, 0, &par);
+       MathedArray ar;
+       mathed_parse(ar, 0, &par);
        par->Metrics();
        disp_flag = (par->GetType() > 0);
 
@@ -660,7 +661,8 @@ bool InsetFormula::SetNumber(bool numbf)
 
 
 UpdatableInset::RESULT
-InsetFormula::LocalDispatch(BufferView * bv, int action, string const & arg)
+InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
+                           string const & arg)
 {
        //   extern char *dispatch_result;
        MathedTextCodes varcode = LM_TC_MIN;