Am Samstag, 6. Juni 2015 um 13:13:22, schrieb Enrico Forestieri <for...@lyx.org>
> +void InsetMathHull::usedMacros(MathData const & md, MacroNameSet & macros) 
> const
> +{
> +       for (size_t i = 0; i < md.size(); ++i) {
> +               MathMacro * mi = const_cast<MathMacro 
> *>(md[i].nucleus()->asMacro());
> +               if (mi) {
> +                       macros.insert(mi->name());
> +                       usedMacros(mi->definition(), macros);

I would change the order, to get the used macro first.

> +               }
> +       }
> +}
> +

This may not help with empty second level macros though.

        Kornel


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to