]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDots.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathDots.cpp
index 7bbfa0b3e02b23700122b4acfbb07f38023fdea7..8052f1a82030b1f3511d7972440fc38850d06657 100644 (file)
@@ -4,7 +4,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -13,6 +13,7 @@
 
 #include "InsetMathDots.h"
 
+#include "LaTeXFeatures.h"
 #include "MathStream.h"
 #include "MathSupport.h"
 #include "MathParser.h"
@@ -49,8 +50,6 @@ void InsetMathDots::metrics(MetricsInfo & mi, Dimension & dim) const
        }
        else if (key_->name == "ddots")
                dh_ = dim.asc;
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -75,4 +74,11 @@ docstring InsetMathDots::name() const
 }
 
 
+void InsetMathDots::validate(LaTeXFeatures & features) const
+{
+       if (!key_->requires.empty())
+               features.require(to_utf8(key_->requires));
+}
+
+
 } // namespace lyx