]> git.lyx.org Git - lyx.git/commitdiff
Avoid processing empty lines when reading the symbols file
authorEnrico Forestieri <forenr@lyx.org>
Fri, 17 Nov 2006 20:43:49 +0000 (20:43 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 17 Nov 2006 20:43:49 +0000 (20:43 +0000)
* 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

src/mathed/MathFactory.C

index 68cb33a1fdcd5a24e96fd68265252fb03fbf9aa4..3e21d59ae266d2685e12552aeb511da4885d3cba 100644 (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