]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.C
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / math_macroarg.C
index fa25bf42ae7bcdd8e6d0b57b957084cd8c9fcdf2..b79589ef69696936635b99185a8a16692a38a935 100644 (file)
@@ -53,11 +53,10 @@ void MathMacroArgument::draw(Painter & pain, int x, int baseline)
 {
        if (expnd_mode_) {
                MathParInset::draw(pain, x, baseline);
-       }
-       else {
+       } else {
                std::ostringstream ost;
                ost << '#' << number_;
-               drawStr(pain, LM_TC_TEX, size, x, baseline, ost.str().c_str());
+               drawStr(pain, LM_TC_TEX, size(), x, baseline, ost.str().c_str());
        }
 }
 
@@ -68,8 +67,8 @@ void MathMacroArgument::Metrics()
        } else {
                std::ostringstream ost;
                ost << '#' << number_;
-               width = mathed_string_width(LM_TC_TEX, size, ost.str().c_str());
-               mathed_string_height(LM_TC_TEX, size, ost.str().c_str(),
+               width = mathed_string_width(LM_TC_TEX, size(), ost.str().c_str());
+               mathed_string_height(LM_TC_TEX, size(), ost.str().c_str(),
                                     ascent, descent);
        }
 }