mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
Fix command-line export
* MathFactory.C: - initMath(): revert change from r15327 because initSymbols() is needed for proper math parsing. - math_font_available(): return false if lyx::use_gui is false. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15331 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3cb466603c
commit
d0463cf006
@ -87,6 +87,9 @@ WordList theWordList;
|
||||
|
||||
bool math_font_available(string & name)
|
||||
{
|
||||
if (!lyx::use_gui)
|
||||
return false;
|
||||
|
||||
LyXFont f;
|
||||
augmentFont(f, name);
|
||||
|
||||
@ -230,7 +233,6 @@ void initMath()
|
||||
if (!initialized) {
|
||||
initialized = true;
|
||||
initParser();
|
||||
if (lyx::use_gui)
|
||||
initSymbols();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user