]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathMacroTemplate.cpp
Fix broken Apple speller interface
[features.git] / src / mathed / InsetMathMacroTemplate.cpp
index 3525ba4e8c6f03d77c4ae31f00ca56907bc8f918..949f161bf90c54b34d06b221dcbb18f2d25c9357 100644 (file)
@@ -678,7 +678,7 @@ int InsetMathMacroTemplate::maxArgumentInDefinition() const
                if (it.nextInset()->lyxCode() != MATH_MACROARG_CODE)
                        continue;
                InsetMathMacroArgument * arg = static_cast<InsetMathMacroArgument*>(it.nextInset());
-               maxArg = std::max(int(arg->number()), maxArg);
+               maxArg = std::max(arg->number(), maxArg);
        }
        return maxArg;
 }