[Laszlo-checkins] r8434 - openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/compiler
hqm@openlaszlo.org
hqm at openlaszlo.org
Wed Mar 26 12:23:01 PDT 2008
Author: hqm
Date: 2008-03-26 12:22:59 -0700 (Wed, 26 Mar 2008)
New Revision: 8434
Modified:
openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
Log:
Change 20080326-hqm-0 by hqm at badtzmaru.local on 2008-03-26 15:21:41 EDT
in /Users/hqm/openlaszlo/pagan/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc
Summary: brought file from r8090 from trunk to fix smokecheck in dhtml
New Features:
Bugs Fixed:
Technical Reviewer: dda
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
LzFormatter is the only file that was changed, subset of r8090
Tests:
Modified: openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
===================================================================
--- openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/compiler/LzFormatter.lzs 2008-03-26 18:40:12 UTC (rev 8433)
+++ openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/compiler/LzFormatter.lzs 2008-03-26 19:22:59 UTC (rev 8434)
@@ -117,7 +117,11 @@
} else {
var decimals = strlen - (decimal + 1);
}
- for (var i = decimals; i < decMax; i++) value += '0';
+ if (decimals > decMax) {
+ value = value.substring(0, strlen - (decimals - decMax));
+ } else {
+ for (var i = decimals; i < decMax; i++) value += '0';
+ }
} else {
value = value.substring(0, decMax);
}
More information about the Laszlo-checkins
mailing list