From 7d8c6c7f868c7200143f732aff3e5ba3738c337d Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 19 Aug 2012 12:50:04 +0100 Subject: [PATCH] TPTScript: Allow numbers with decimal point --- src/cat/TPTScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index d37bff350..dc466dbb9 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -85,7 +85,7 @@ ValueType TPTScriptInterface::testType(std::string word) //Basic type parseNumber: for(i = 0; i < word.length(); i++) - if(!(rawWord[i] >= '0' && rawWord[i] <= '9')) + if(!(rawWord[i] >= '0' && rawWord[i] <= '9') && rawWord[i] != '.') { if(rawWord[i] == ',' && rawWord[i+1] >= '0' && rawWord[i+1] <= '9') goto parsePoint;