]> git.lyx.org Git - features.git/commitdiff
Fix drawing glitch
authorAndré Pönitz <poenitz@gmx.net>
Tue, 10 Jul 2001 17:21:26 +0000 (17:21 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 10 Jul 2001 17:21:26 +0000 (17:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2217 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_decorationinset.C

index c8c799c796c0c4095f1239dd7d1f93619564a2cc..1cef8d83c059324e92b90c89f5b982edc5e6a1fa 100644 (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;