]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.C
fix compilation problem
[lyx.git] / src / mathed / math_diminset.C
1
2 #include "math_diminset.h"
3 #include "Lsstream.h"
4 #include "textpainter.h"
5
6
7 void MathDimInset::metrics(TextMetricsInfo const &) const
8 {
9         std::ostringstream os;
10         os << *this;
11         width_   = int(os.str().size());
12         ascent_  =      1;
13         descent_ = 0;
14 }
15
16
17 void MathDimInset::draw(TextPainter & pain, int x, int y) const
18 {
19         std::ostringstream os;
20         os << *this;
21         pain.draw(x, y, os.str().c_str());
22 }