Skip to content

Commit

Permalink
fix another typo, now it works in older version (tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelinj8 committed Sep 12, 2024
1 parent 7d096e5 commit 652f49d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public List<PropertyDeclaration> buildDeclarations(
} else {
throw new CSSParseException("Value for " + cssName + " must be a length or identifier", -1);
}
} else if (values.size() == 2) { /* values.size == 2 */
} else if (values.size() == 2) {
PropertyValue value1 = (PropertyValue)values.get(0);
PropertyValue value2 = (PropertyValue)values.get(1);

Expand Down Expand Up @@ -154,7 +154,7 @@ public List<PropertyDeclaration> buildDeclarations(

checkInheritAllowed(value3, false);

if (isLength(value1) && isLength(value2) && value2.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) {
if (isLength(value1) && isLength(value2) && value3.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) {
if (value1.getFloatValue() < 0.0f) {
throw new CSSParseException("A page dimension may not be negative", -1);
}
Expand Down

0 comments on commit 652f49d

Please sign in to comment.