]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_inset.C
index a8ce515c52a308770a62787ad26b4834a296f60f..d7fc527af1029b4a249a70294c49edaab5be4045 100644 (file)
@@ -21,10 +21,9 @@ using std::ostream;
 using std::endl;
 
 
-MathArray dummyCell;
-
 MathArray & MathInset::cell(idx_type)
 {
+       static MathArray dummyCell;
        lyxerr << "I don't have a cell 1" << endl;
        return dummyCell;
 }
@@ -32,16 +31,12 @@ MathArray & MathInset::cell(idx_type)
 
 MathArray const & MathInset::cell(idx_type) const
 {
+       static MathArray dummyCell;
        lyxerr << "I don't have a cell 2" << endl;
        return dummyCell;
 }
 
 
-void MathInset::substitute(MathMacro const &)
-{}
-
-
-
 void MathInset::dump() const
 {
        lyxerr << "---------------------------------------------" << endl;
@@ -135,9 +130,3 @@ ostream & operator<<(ostream & os, MathAtom const & at)
        at->write(wi);
        return os;
 }
-
-
-string MathInset::fileInsetLabel() const
-{
-       return "Formula";
-}