Fix drawing glitch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2217 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-07-10 17:21:26 +00:00
parent 88b5d739b5
commit fa867bfd55

View File

@ -31,15 +31,16 @@ MathInset * MathDecorationInset::clone() const
void MathDecorationInset::Metrics(MathStyles st)
{
xcell(0).Metrics(st);
size_ = st;
width_ = xcell(0).width();
ascent_ = xcell(0).ascent();
descent_ = xcell(0).descent();
dh_ = mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
dh_ = 5; //mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
if (upper_) {
dy_ = -ascent_ - dh_;
ascent_ += dh_ + 1;
dy_ = -ascent_;
} else {
dy_ = descent_ + 1;
descent_ += dh_ + 2;