From: konrad Date: Tue, 30 Nov 2010 13:34:04 +0000 (+0000) Subject: oops, formula engine was not consistent X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=6e2b4811ba8db469bfbc875b84e7873e348be8dd;p=web%2Fkonrad%2Fsmoke.git oops, formula engine was not consistent git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@644 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- 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