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:
Abdelrazak Younes 2006-10-14 14:15:06 +00:00
parent 3cb466603c
commit d0463cf006

View File

@ -87,6 +87,9 @@ WordList theWordList;
bool math_font_available(string & name)
{
if (!lyx::use_gui)
return false;
LyXFont f;
augmentFont(f, name);
@ -230,8 +233,7 @@ void initMath()
if (!initialized) {
initialized = true;
initParser();
if (lyx::use_gui)
initSymbols();
initSymbols();
}
}