]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_macroarg.C
index 35d09d22d9463e4d351663c2e740f2a89123f266..6898f15366914948f09109a3cb9a9968f2710f63 100644 (file)
@@ -70,8 +70,9 @@ void MathMacroArgument::normalize(NormalStream & os) const
 void MathMacroArgument::substitute(MathMacro const & m)
 {
        cell(0) = m.cell(number_ - 1);
-       for (MathArray::iterator it = cell(0).begin(); it != cell(0).end(); ++it)
-               it->nucleus()->handleFont(code_);
+       if (code_ != LM_TC_MIN)
+               for (MathArray::iterator it = cell(0).begin(); it != cell(0).end(); ++it)
+                       it->nucleus()->handleFont(code_);
        expanded_ = true;
 }