]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_diminset.C
index e9de770737d0324aab5e97d22e6419171f35df76..6f35928e0660c7b281bed21b1449ad57ede97006 100644 (file)
@@ -1,3 +1,4 @@
+
 #include "math_diminset.h"
 #include "Lsstream.h"
 #include "textpainter.h"
@@ -5,17 +6,24 @@
 
 void MathDimInset::metricsT(TextMetricsInfo const &) const
 {
+#ifndef WITH_WARNINGS
+#warning temporarily disabled
+#endif
+/*
        std::ostringstream os;
-       os << *this;
-       width_   = int(os.str().size());
-       ascent_  =      1;
-       descent_ = 0;
+       os << MathAtom(this);
+       dim_.w = int(os.str().size());
+       dim_.a = 1;
+       dim_.d = 0;
+*/
 }
 
 
-void MathDimInset::drawT(TextPainter & pain, int x, int y) const
+void MathDimInset::drawT(TextPainter &, int, int) const
 {
+/*
        std::ostringstream os;
-       os << *this;
-       pain.draw(x, y, os.str().c_str());
+       os << MathAtom(this);
+       pain.draw(x, y, STRCONV(os.str()));
+*/
 }