mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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
This commit is contained in:
parent
a897cda71c
commit
dcfd6e5a99
@ -1036,7 +1036,7 @@ int parse_export(string const & type, string const &)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
batch = "buffer-export " + type;
|
batch = "buffer-export " + type;
|
||||||
lyx::use_gui = true;
|
lyx::use_gui = false;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,9 @@ using std::istringstream;
|
|||||||
|
|
||||||
bool has_math_fonts;
|
bool has_math_fonts;
|
||||||
|
|
||||||
|
namespace lyx {
|
||||||
|
extern bool use_gui;
|
||||||
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@ -227,7 +230,8 @@ void initMath()
|
|||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
initParser();
|
initParser();
|
||||||
initSymbols();
|
if (lyx::use_gui)
|
||||||
|
initSymbols();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user