From: André Pönitz Date: Tue, 10 Jul 2001 17:21:26 +0000 (+0000) Subject: Fix drawing glitch X-Git-Tag: 1.6.10~21105 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fa867bfd559f28f6846b5473869404294763ef51;p=features.git Fix drawing glitch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2217 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_decorationinset.C b/src/mathed/math_decorationinset.C index c8c799c796..1cef8d83c0 100644 --- a/src/mathed/math_decorationinset.C +++ b/src/mathed/math_decorationinset.C @@ -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;