From fa867bfd559f28f6846b5473869404294763ef51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 10 Jul 2001 17:21:26 +0000 Subject: [PATCH] Fix drawing glitch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2217 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_decorationinset.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2