]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcinset.C
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_funcinset.C
index d34245db74a9195d093a09ee2de9579637690cca..9932510580690f8b7c20a19e9c358265c50c3986 100644 (file)
@@ -52,10 +52,7 @@ void MathFuncInset::writeNormal(std::ostream & os) const
 void MathFuncInset::metrics(MathStyles st) const 
 {
        size_ = st;
-       if (name_.empty()) 
-               mathed_char_dim(LM_TC_TEX, size_, 'I', ascent_, descent_, width_);
-       else 
-               mathed_string_dim(LM_TC_TEX, size_, name_, ascent_, descent_, width_);
+       mathed_string_dim(LM_TC_TEX, size_, name_, ascent_, descent_, width_);
 }
 
 
@@ -63,8 +60,5 @@ void MathFuncInset::draw(Painter & pain, int x, int y) const
 { 
        xo(x);
        yo(y);
-       if (name_.empty()) 
-               drawChar(pain, LM_TC_TEX, size_, x, y, ' ');
-       else
-               drawStr(pain, LM_TC_TEX, size_, x, y, name_);
+       drawStr(pain, LM_TC_TEX, size_, x, y, name_);
 }