From 22be03e68c2c5132c075748232d62a8bcfe2b108 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 17 Nov 2006 20:43:49 +0000 Subject: [PATCH] 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 --- src/mathed/MathFactory.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathFactory.C b/src/mathed/MathFactory.C index 68cb33a1fd..3e21d59ae2 100644 --- a/src/mathed/MathFactory.C +++ b/src/mathed/MathFactory.C @@ -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 -- 2.39.2