After having some frustration from math macros bugs, I've decided to take a
deep breath and dive into the mathed code.
I've managed to fix two bugs:
1) If a math macro is used in subscript/superscript, or if the argument of a
macro contains a big operator, there are display bugs.
I've fixed it by adding "tmplate->SetStyle(size)" to MathMacro::Metrics,
to match the corresponding line in MathMacro::draw.
2) If there are math macros in the document, the positioning of latex/checktex
error insets is wrong. This happens as InsetFormulaMacro::Latex returns
the wrong value (1). I changed the return value to 2.
The patch should also go into the 1.1.5 branch.
patch.gz