> >>>>> "Asger" == Asger Alstrup Nielsen <[EMAIL PROTECTED]> writes:
> 
> Asger> Shouldn't be too difficult to fix.  Have a look at lyxfont.C
> Asger> and the "latexFontStart" (or something) method.  In that,
> Asger> compare the given font with the running font, and if the only
> Asger> LaTeX font mode has changed, ignore the request to change font:
> Asger> We already have the correct font.  Do the same for the
> Asger> "latexFontEnd" method.
> 
> I can't make it work. What I did is add the line marked <<<<<<<<< to
> latexWriteStartChanges (and *End*). If I understand what is going on,
> this should be enough. Alas, it does not work.
> 
> Asger, a hint?
> 
> JMarc
> 
> -------------------------------------------
> int LyXFont::latexWriteStartChanges(LString & file, LyXFont const & base) const
> {
>       LyXFont f = *this;
>       f.reduce(base);
>       f.setLatex(INHERIT); // ignore any latex change <<<<<<<<<<<<<<<<<<

Ok, it seems that there is not enough information in the passed
parameters.  Therefor, we have to do what Amir concluded:
Either change the interface of latexWriteStartChanges, or hack
paragraph.C to not compare on LaTeX-property.

The latter is probably the easiest.
Just make a copy of the two fonts, and the use "font1.setLatex(LyXFOnt::INHERIT)"
and "font2.setLatex(LyXFont::INHERIT)" before the comparision.

That should fix it.

Greets,

Asger

Reply via email to