]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.cpp
Remove hardcoded values
[lyx.git] / src / mathed / InsetMathHull.cpp
index 52442b225b84a149a51900c2111ca45153d1b76b..807475e63aa771ed8381db02f0bc10d6424ed2f0 100644 (file)
@@ -515,8 +515,6 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const
                        if (display())
                                dim.des += displayMargin();
                }
-               // Cache the inset dimension.
-               setDimCache(mi, dim);
                return;
        }
 
@@ -550,9 +548,6 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const
        math_font_max_dim(mi.base.font, asc, des);
        dim.asc = max(dim.asc, asc);
        dim.des = max(dim.des, des);
-       // Cache the inset dimension.
-       // FIXME: This will overwrite InsetMathGrid dimension, is that OK?
-       setDimCache(mi, dim);
 }
 
 
@@ -609,7 +604,6 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const
                        // one pixel gap in front
                        preview_->draw(pi, x + 1, y);
                }
-               setPosCache(pi, x, y);
                return;
        }
 
@@ -637,7 +631,6 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const
        if (canPaintChange(*bv))
                pi.change_.paintCue(pi, x + 1, y + 1 - dim.asc,
                                    x + dim.wid, y + dim.des);
-       setPosCache(pi, x, y);
 }