X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferparams.C;h=41abadeb94aafc18d1f92936ce1c32313a6bf97a;hb=414a11684e77aee713135ae65ec7438cfc4b162f;hp=087900c5b960fe69042a25fdfbbee020913c8f87;hpb=0ce45c32b6b1b08238aee59744108f2abfffae67;p=lyx.git diff --git a/src/bufferparams.C b/src/bufferparams.C index 087900c5b9..41abadeb94 100644 --- a/src/bufferparams.C +++ b/src/bufferparams.C @@ -596,8 +596,8 @@ void BufferParams::writeFile(ostream & os) const << "\n\\paperorientation " << string_orientation[orientation] << '\n'; - std::list::const_iterator it = branchlist().begin(); - std::list::const_iterator end = branchlist().end(); + BranchList::const_iterator it = branchlist().begin(); + BranchList::const_iterator end = branchlist().end(); for (; it != end; ++it) { os << "\\branch " << it->getBranch() << "\n\\selected " << it->getSelected() @@ -1092,6 +1092,14 @@ LyXTextClass const & BufferParams::getLyXTextClass() const } +LyXFont const BufferParams::getFont() const +{ + LyXFont f = getLyXTextClass().defaultfont(); + f.setLanguage(language); + return f; +} + + void BufferParams::readPreamble(LyXLex & lex) { if (lex.getString() != "\\begin_preamble")