http://bugzilla.lyx.org/show_bug.cgi?id=2664
- Open some document which first line is not in the default font (for ex a nice title) - set the cursor somewhere else (on a line with normal font) - resize the document horizontally (to trigger a buffer resize) - enter a character. - surprise! it is in the font of the first line! After this long description, the solution is rather short (one line removed). I checked that all other callers of LyXText::init (that I could find) did reset the current_font afterwards. Comments and tests please. JMarc
Index: src/text2.C =================================================================== --- src/text2.C (revision 14677) +++ src/text2.C (working copy) @@ -89,7 +89,6 @@ void LyXText::init(BufferView * bv) for (pit_type pit = 0; pit != end; ++pit) pars_[pit].rows().clear(); - current_font = getFont(pars_[0], 0); updateCounters(*bv->buffer()); }
