From: Jürgen Vigna Date: Thu, 11 Apr 2002 13:51:47 +0000 (+0000) Subject: reset font after read of an old float_type as this was the case in the old X-Git-Tag: 1.6.10~19436 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fe27c7bca90b3d44a2b9b6f72dc1d15bf3201388;p=features.git reset font after read of an old float_type as this was the case in the old code! (fix #324). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3970 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index b1fc3c0582..6a0fdd1fe5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-04-11 Juergen Vigna + * buffer.C (parseSingleLyXformat2Token): reset font after read of + an old float_type as this was the case in the old code! + * paragraph.C (simpleTeXOnePar): fix closing of foreignlanguage tags. * BufferView2.C (showLockedInsetCursor): use iy diff --git a/src/buffer.C b/src/buffer.C index 67ddc7672e..185e4ee4d6 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -625,6 +625,10 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par, return false; // no end read yet } + // we have to reset the font as in the old format after a float + // the font was automatically reset! + font = LyXFont(LyXFont::ALL_INHERIT, params.language); + // Here we need to check for \end_deeper and handle that // before we do the footnote parsing. // This _is_ a hack! (Lgb)