2002/css-validator/org/w3c/css/properties/css21 CssFontFamily.java,1.4,1.5

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory hutz:/tmp/cvs-serv1811/css21

Modified Files:
	CssFontFamily.java 
Log Message:
proper loop limit

Index: CssFontFamily.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssFontFamily.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CssFontFamily.java	30 Aug 2012 09:10:57 -0000	1.4
+++ CssFontFamily.java	30 Aug 2012 13:19:34 -0000	1.5
@@ -135,7 +135,7 @@
 					ArrayList<CssIdent> idval = new ArrayList<CssIdent>();
 					idval.add((CssIdent) val);
 					// we add idents if separated by spaces...
-					while (op == SPACE && !expression.end()) {
+					while (op == SPACE && expression.getRemainingCount() > 1) {
 						expression.next();
 						op = expression.getOperator();
 						val = expression.getValue();

Received on Thursday, 30 August 2012 13:19:37 UTC