]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnknown.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathUnknown.cpp
index 41baefc92c1b54e974c96519593deb6a407bf721..a49d591a35bbafa43d8fbf82faa15019095fe8d7 100644 (file)
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "frontends/Painter.h"
+
 
 namespace lyx {
 
-InsetMathUnknown::InsetMathUnknown(docstring const & nm, bool final, bool black)
-       : name_(nm), final_(final), black_(black)
+InsetMathUnknown::InsetMathUnknown(docstring const & nm,
+       docstring const & selection, bool final, bool black)
+       : name_(nm), final_(final), black_(black), selection_(selection)
 {}
 
 
-Inset * InsetMathUnknown::clone() const
-{
-       return new InsetMathUnknown(*this);
-}
-
-
 docstring InsetMathUnknown::name() const
 {
        return name_;
@@ -62,7 +59,6 @@ void InsetMathUnknown::draw(PainterInfo & pi, int x, int y) const
                drawStrBlack(pi, x, y, name_);
        else
                drawStrRed(pi, x, y, name_);
-       setPosCache(pi, x, y);
 }