]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_tabularinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_tabularinset.C
index e67203f2559160d33e6773c083e06fb9da615eb5..eb4fe3e8eb374f89410bdba729e5c3cef20c2911 100644 (file)
@@ -48,17 +48,19 @@ auto_ptr<InsetBase> MathTabularInset::doClone() const
 }
 
 
-void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
+void MathTabularInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
-       return MathGridInset::metrics(mi);
+       MathGridInset::metrics(mi, dim);
+       dim.wid += 6;
+       dim_ = dim;
 }
 
 
 void MathTabularInset::draw(PainterInfo & pi, int x, int y) const
 {
        FontSetChanger dummy(pi.base, "textnormal");
-       MathGridInset::draw(pi, x, y);
+       MathGridInset::drawWithMargin(pi, x, y, 4, 2);
 }