]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_sqrtinset.C
index df36cf28ce9645b55b1cd603d0020e3b0a90bb08..6ad124ef0fd97bd4126ec72c48e14f83b0869f33 100644 (file)
@@ -1,5 +1,3 @@
-#include <config.h>
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
@@ -7,12 +5,11 @@
 #include "math_sqrtinset.h"
 #include "LColor.h"
 #include "Painter.h"
-#include "support.h"
 #include "support/LOstream.h"
 
 
 MathSqrtInset::MathSqrtInset()
-       : MathInset("sqrt", LM_OT_SQRT, 1)
+       : MathInset(1)
 {}
 
 
@@ -22,7 +19,7 @@ MathInset * MathSqrtInset::clone() const
 }
 
 
-void MathSqrtInset::Metrics(MathStyles st)
+void MathSqrtInset::Metrics(MathStyles st, int, int)
 {
        xcell(0).Metrics(st);
        size_    = st;
@@ -51,7 +48,7 @@ void MathSqrtInset::draw(Painter & pain, int x, int y)
 
 void MathSqrtInset::Write(std::ostream & os, bool fragile) const
 {
-       os << '\\' << name_ << '{';
+       os << "\\sqrt{";
        cell(0).Write(os, fragile); 
        os << '}';
 }