From 04d2adca7dc88e312a45be12be2566a5e18586c3 Mon Sep 17 00:00:00 2001 From: Davy Kager Date: Mon, 20 Jul 2015 10:56:54 +0200 Subject: [PATCH] Fixup. [code] --- liblouis/compileTranslationTable.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c index a413c8dbbc..0aee418758 100644 --- a/liblouis/compileTranslationTable.c +++ b/liblouis/compileTranslationTable.c @@ -4932,9 +4932,12 @@ compileRule (FileInfo * nested) if (!addRule (nested, opcode, &ruleChars, &ruleDots, after, before)) ok = 0; - TranslationTableCharacter *c = compile_findCharOrDots(ruleChars.chars[0], 0); - if(c) - c->attributes |= CTC_NumericMode; + if(opcode == CTO_DecPoint) + { + TranslationTableCharacter *c = compile_findCharOrDots(ruleChars.chars[0], 0); + if(c) + c->attributes |= CTC_NumericMode; + } } // if(opcode != CTO_DecPoint) // {