void MathKernInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
+ wid_pix_ = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
+ dim.wid = wid_pix_;
dim.asc = 0;
dim.des = 0;
}
+int MathKernInset::width() const
+{
+ return wid_pix_;
+}
+
+
void MathKernInset::draw(PainterInfo &, int, int) const
{}
void MathKernInset::write(WriteStream & os) const
{
-#ifdef WITH_WARNINGS
-#warning this crashs on startup!
-#endif
- //os << "\\kern" << wid_.asLatexString() << ' ';
- os << "\\kern0mm ";
+ os << "\\kern" << wid_.asLatexString() << ' ';
}