]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_sqrtinset.C
split super/subscript handling in new base class MathUpDownInset and
[features.git] / src / mathed / math_sqrtinset.C
index b201df05457e58715d5c6bb5c50db7a7c8b63544..e802a4e0c7facb2a3b21748e822047f3f639bd3b 100644 (file)
@@ -22,7 +22,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 +51,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 << '}';
 }