Lars Gullik Bjønnes wrote:

> Ok it seems that this patch solves the whole problem (buffer.C):
> 
> @@ -388,12 +391,14 @@ bool Buffer::readLyXformat2(LyXLex & lex
> 
>  #ifndef NO_COMPABILITY
>  void Buffer::insertErtContents(Paragraph * par, int & pos,
> -                              LyXFont const & font, bool set_inactive)
> +                       LyXFont const & f, bool set_inactive)
>  {
>         if (!ert_comp.contents.empty()) {
> -               lyxerr[Debug::INSETS] << "ERT contents:\n"
> -                      << ert_comp.contents << endl;
> +               lyxerr[Debug::INSETS] << "ERT contents:\n'"
> +                                     << ert_comp.contents << "'" << endl;
>                 Inset * inset = new InsetERT(ert_comp.contents, true);
> +               LyXFont font;
> +               font.setLanguage(f.language());
>                 par->insertInset(pos++, inset, font);
>                 ert_comp.contents.erase();
>         }
> 
> 
> Please test.


ok, worked well, no more "inivisible" errors. Nevertheless the dvi is

anotherone than that from 1.1.6, but it's not worth  at this time
to discuss it further. maybe that other users don't have such a
problem.

 


Herbert


-- 
http://www.lyx.org/help/

Reply via email to