The attached patch fixes
http://bugzilla.lyx.org/show_bug.cgi?id=5376
for me.
As I'm not 100% sure about the code, could some math expert please have a look at the patch and give is OK or correct it?

thanks and regards
Uwe
Index: mathed/InsetMathDots.cpp
===================================================================
--- mathed/InsetMathDots.cpp	(revision 26935)
+++ mathed/InsetMathDots.cpp	(working copy)
@@ -12,12 +12,13 @@
 #include <config.h>
 
 #include "InsetMathDots.h"
-
 #include "MathStream.h"
 #include "MathSupport.h"
 #include "MathParser.h"
 #include "MetricsInfo.h"
 
+#include "LaTeXFeatures.h"
+
 #include "frontends/FontMetrics.h"
 
 
@@ -67,6 +68,16 @@
 }
 
 
+void InsetMathDots::validate(LaTeXFeatures & features) const
+{
+	if (key_->name == "dotsb" || key_->name == "dotsc" || key_->name == "dotsi"
+		|| key_->name == "dotsm" || key_->name == "dotso") {
+			features.require("amsmath");
+			//InsetMathNest::validate(features);
+	}
+}
+
+
 docstring InsetMathDots::name() const
 {
 	return key_->name;
Index: mathed/InsetMathDots.h
===================================================================
--- mathed/InsetMathDots.h	(revision 26935)
+++ mathed/InsetMathDots.h	(working copy)
@@ -29,6 +29,8 @@
 	///
 	void draw(PainterInfo & pi, int x, int y) const;
 	///
+	void validate(LaTeXFeatures & features) const;
+	///
 	docstring name() const;
 protected:
 	/// cache for the thing's height

Reply via email to