]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_rootinset.C
- remove MathStyles cache from those insets that don't need it
[features.git] / src / mathed / math_rootinset.C
index c9bd8e618877cd06dea1d8e7aca5315378a3b8aa..d5190cea733e9879884afa6fde5c7ae16ac6abde 100644 (file)
@@ -19,6 +19,7 @@
 #include "support/LOstream.h"
 #include "Painter.h"
 
+
 MathRootInset::MathRootInset()
        : MathNestInset(2)
 {}
@@ -30,10 +31,9 @@ MathInset * MathRootInset::clone() const
 }
 
 
-void MathRootInset::metrics(MathMetricsInfo const & st) const
+void MathRootInset::metrics(MathMetricsInfo const & mi) const
 {
-       MathNestInset::metrics(st);
-       size_    = st;
+       MathNestInset::metrics(mi);
        ascent_  = std::max(xcell(0).ascent()  + 5, xcell(1).ascent())  + 2;
        descent_ = std::max(xcell(1).descent() + 5, xcell(0).descent()) + 2;
        width_   = xcell(0).width() + xcell(1).width() + 10;