|
From: <ma...@us...> - 2011-12-26 15:27:02
|
Revision: 609
http://openautomation.svn.sourceforge.net/openautomation/?rev=609&view=rev
Author: mayerch
Date: 2011-12-26 15:26:55 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
Bug fix: numbers between -1 and 0 didn't show a negative sign when the format string was used.
Fix as shown in http://knx-user-forum.de/198589-post10.html
Modified Paths:
--------------
CometVisu/trunk/visu/lib/compatibility.js
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2011-12-26 15:12:18 UTC (rev 608)
+++ CometVisu/trunk/visu/lib/compatibility.js 2011-12-26 15:26:55 UTC (rev 609)
@@ -48,7 +48,7 @@
min: match[6] || 0,
precision: match[8],
code: match[9] || '%',
- negative: parseInt(arguments[convCount]) < 0 ? true : false,
+ negative: parseFloat(arguments[convCount]) < 0 ? true : false,
argument: String(arguments[convCount])
};
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|