The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 55bc3665a2a43e4dca30b5071078b8bc7548464b Author: Juergen Spitzmueller <[email protected]> Date: Sun Feb 10 14:31:49 2013 +0100 LaTeXFonts: Support the rare case where there is really only preamble code diff --git a/src/LaTeXFonts.cpp b/src/LaTeXFonts.cpp index 4cc1b82..1694975 100644 --- a/src/LaTeXFonts.cpp +++ b/src/LaTeXFonts.cpp @@ -163,6 +163,11 @@ docstring const LaTeXFont::getUsedFont(bool ot1, bool complete, bool nomath) else if (!package_.empty() && LaTeXFeatures::isAvailable(to_ascii(package_))) return name_; + else if (!preamble_.empty() && package_.empty() + && requires_.empty() && !switchdefault_ + && altfonts_.empty()) { + return name_; + } else if (!altfonts_.empty()) { for (size_t i = 0; i < altfonts_.size(); ++i) { LaTeXFont altf = altFont(altfonts_[i]); ----------------------------------------------------------------------- Summary of changes: src/LaTeXFonts.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) hooks/post-receive -- The LyX Source Repository
