]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_unknowninset.C
index 31bb97bcbfe3d268267f09919d8066814b3479c4..c54562514ae2df051c973fe884792d34892a3c9a 100644 (file)
@@ -33,19 +33,13 @@ void MathUnknownInset::setName(string const & name)
 }
 
 
-bool MathUnknownInset::match(MathInset * p) const
+bool MathUnknownInset::match(MathAtom const & at) const
 {
-       MathUnknownInset const * q = p->asUnknownInset();
+       MathUnknownInset const * q = at->asUnknownInset();
        return q && name_ == q->name_;
 }
 
 
-void MathUnknownInset::write(WriteStream & os) const
-{
-       os << "\\" << name_ << ' ';
-}
-
-
 void MathUnknownInset::normalize(NormalStream & os) const
 {
        os << "[unknown " << name_ << ']';