From: Enrico Forestieri Date: Fri, 17 Nov 2006 20:43:49 +0000 (+0000) Subject: Avoid processing empty lines when reading the symbols file X-Git-Tag: 1.6.10~11843 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=22be03e68c2c5132c075748232d62a8bcfe2b108;p=lyx.git 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 --- 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