]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
* src/frontends/GuiDocument.{cpp,h}:
[lyx.git] / src / mathed / InsetMathNumber.cpp
index 57f6ad9253a7d918cc30354cf2fd6084bb87b2b5..86d68f29d6811cb03e5905ad008315cc7ac3211e 100644 (file)
 #include "MathStream.h"
 #include "MathSupport.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::vector;
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
@@ -31,13 +31,9 @@ Inset * InsetMathNumber::clone() const
 }
 
 
-bool InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        mathed_string_dim(mi.base.font, str_, dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
 }