From: Abdelrazak Younes Date: Fri, 13 Oct 2006 21:27:55 +0000 (+0000) Subject: enable buffer-export without loading the GUI. X-Git-Tag: 1.6.10~12389 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dcfd6e5a99afe464489a7065a6b9bf88514e377a;p=features.git enable buffer-export without loading the GUI. * lyx_main.C: - parse_export(): set lyx::use_gui to false. * MathFactory.C: - initMath(): initSymbols() only if lyx::use_gui is true. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15327 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyx_main.C b/src/lyx_main.C index f1eb442606..1ae9a00c30 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -1036,7 +1036,7 @@ int parse_export(string const & type, string const &) exit(1); } batch = "buffer-export " + type; - lyx::use_gui = true; + lyx::use_gui = false; return 1; } diff --git a/src/mathed/MathFactory.C b/src/mathed/MathFactory.C index 6bc40bbea9..60b0a6c09e 100644 --- a/src/mathed/MathFactory.C +++ b/src/mathed/MathFactory.C @@ -74,6 +74,9 @@ using std::istringstream; bool has_math_fonts; +namespace lyx { +extern bool use_gui; +} namespace { @@ -227,7 +230,8 @@ void initMath() if (!initialized) { initialized = true; initParser(); - initSymbols(); + if (lyx::use_gui) + initSymbols(); } }