From 6e2b4811ba8db469bfbc875b84e7873e348be8dd Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 30 Nov 2010 13:34:04 +0000 Subject: [PATCH] oops, formula engine was not consistent git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@644 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/misc/formula.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/misc/formula.cpp b/src/misc/formula.cpp index e70afd5..6ed16f6 100644 --- a/src/misc/formula.cpp +++ b/src/misc/formula.cpp @@ -44,6 +44,8 @@ MElamEngine::MElamEngine(QObject* parent): Engine(parent) //configure character classes QString alpha="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"; characterClasses().setNameClass(alpha,alpha+"0123456789.:"); + QString oc=characterClasses().operatorClass(); + characterClasses().setOperatorClass(oc.remove('.').remove(':')); if(!characterClasses().isConsistent()) qDebug()<<"Warning: built-in calculator is inconsistent."; //load default engines -- 1.7.2.5