lyx-devel  

Re: [Patch] Possible fix for 6502: ... LaTeX Errors Dialog highlighting wrong line.

Jürgen Spitzmüller
Mon, 08 Feb 2010 03:44:11 -0800

John McCabe-Dansted wrote:
> Something like the attached then?

Sort of, yes. Although I would, to be in line with what we have, do in 
MathMacroTemplate::write
        
        int i = 0;
[...]
        if (os.latex()) {
                // writing .tex. done.
                os << "\n";
                ++i;
        } else {
                // writing .lyx, write special .tex export only if necessary
                if (!cell(displayIdx()).empty())
                        os << "\n{" << cell(displayIdx()) << '}';
                        ++i;
        }
        return i;


Jürgen