]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.C
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_spaceinset.C
index a3599f655bbc3de57a98c14749ad164e54cdb377..8f71fa0f8ec65d3c1553c9d77d7b971d8b804006 100644 (file)
@@ -46,7 +46,7 @@ MathSpaceInset::MathSpaceInset(string const & name)
 }
 
 
-auto_ptr<InsetBase> MathSpaceInset::clone() const
+auto_ptr<InsetBase> MathSpaceInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathSpaceInset(*this));
 }
@@ -119,8 +119,8 @@ void MathSpaceInset::incSpace()
 void MathSpaceInset::validate(LaTeXFeatures & features) const
 {
        if (space_ >= 0 && space_< nSpace) {
-               if ((latex_mathspace[space_] == "negmedspace")
-                || (latex_mathspace[space_] == "negthickspace"))
+               if ((latex_mathspace[space_] == string("negmedspace"))
+                || (latex_mathspace[space_] == string("negthickspace")))
                        features.require("amsmath");
        }
 }