details: /erp/devel/pi/rev/b96d9a39520e
changeset: 11363:b96d9a39520e
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Fri Mar 25 09:38:37 2011 +0100
summary: fixed bug 16460: Several buttons don't work
Fixed CSSMinimizer not to enter in an infinite loop when there are 'special
commnents'
(those having /**).
diffstat:
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/CSSMinimizer.java
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r daba093801bb -r b96d9a39520e
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/CSSMinimizer.java
---
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/CSSMinimizer.java
Thu Mar 24 23:16:40 2011 +0100
+++
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/CSSMinimizer.java
Fri Mar 25 09:38:37 2011 +0100
@@ -95,8 +95,9 @@
log.debug("Removing comments...");
+ n = 0;
// Find the start of the comment
- while ((n = sb.indexOf("/*")) != -1) {
+ while ((n = sb.indexOf("/*", n)) != -1) {
if (sb.charAt(n + 2) == '*') { // Retain special comments
n += 2;
continue;
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits