mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
Fix bug 2074: kern width wrong
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10583 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b063595be8
commit
b82859b382
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -42,12 +42,19 @@ auto_ptr<InsetBase> MathKernInset::doClone() const
|
||||
|
||||
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
|
||||
{}
|
||||
|
||||
|
@ -35,9 +35,14 @@ public:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user