oops, formula engine was not consistent
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 30 Nov 2010 13:34:04 +0000 (13:34 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 30 Nov 2010 13:34:04 +0000 (13:34 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@644 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/misc/formula.cpp

index e70afd5..6ed16f6 100644 (file)
@@ -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