+2005-11-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * math_kerninset.[Ch]: fix 2074: kern width wrong
+
2005-10-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_gridinset.[Ch] (eolString, write): Output \\ at the end of the last
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 write(WriteStream & os) const;
///
void normalize(NormalStream & ns) const;
+ ///
+ int width() const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
/// width in em
LyXLength wid_;
+ /// in pixels
+ mutable int wid_pix_;
+
};
#endif