]> git.lyx.org Git - lyx.git/commitdiff
\overset had the same problem as \dot
authorAndré Pönitz <poenitz@gmx.net>
Thu, 8 Apr 2004 15:45:11 +0000 (15:45 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 8 Apr 2004 15:45:11 +0000 (15:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8637 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_oversetinset.C

index 7f2eb1638111626fc5a7f1d017edbbc39147d555..28e65f7f5d41dcacb4a5e4323bf04d0a0be22e7a 100644 (file)
@@ -30,21 +30,22 @@ void MathOversetInset::metrics(MetricsInfo & mi, Dimension & dim) const
        cell(1).metrics(mi);
        FracChanger dummy(mi.base);
        cell(0).metrics(mi);
-       dim_.wid = max(cell(0).width(), cell(1).width()) + 4;
-       dim_.asc = cell(1).ascent() + cell(0).height() + 4;
-       dim_.des = cell(1).descent();
-       dim = dim_;
+       dim.wid = max(cell(0).width(), cell(1).width()) + 4;
+       dim.asc = cell(1).ascent() + cell(0).height() + 4;
+       dim.des = cell(1).descent();
+       metricsMarkers(dim);
+       dim_ = dim;
 }
 
 
 void MathOversetInset::draw(PainterInfo & pi, int x, int y) const
 {
-       int m  = x + pi.width / 2;
+       int m  = x + width() / 2;
        int yo = y - cell(1).ascent() + cell(0).descent() - 1;
        cell(1).draw(pi, m - cell(1).width() / 2, y);
        FracChanger dummy(pi.base);
        cell(0).draw(pi, m - cell(0).width() / 2, yo);
-       setPosCache(pi, x, y);
+       drawMarkers(pi, x, y);
 }