Avoid processing empty lines when reading the symbols file

* src/mathed/MathFactory.C
	(initSymbols): skip a line when it is empty or a comment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15961 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2006-11-17 20:43:49 +00:00
parent 61c43883ba
commit 22be03e68c

View File

@ -124,7 +124,7 @@ void initSymbols()
while (getline(fs, line)) {
int charid = 0;
int fallbackid = 0;
if (!line.empty() && line[0] == '#')
if (line.empty() || line[0] == '#')
continue;
// special case of iffont/else/endif