From: Manolo Carrasco Date: Wed, 26 Oct 2011 16:34:27 +0000 (+0000) Subject: typo X-Git-Tag: release-1.3.2~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c1613e2c1a3ae3b9dccd44e66ef1ccfa887546a;p=gwtquery.git typo --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java index da318b55..a2aaf788 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java @@ -164,7 +164,7 @@ public class DocumentStyleImpl { if (val == null || val.trim().length() == 0) { removeStyleProperty(e, prop); } else { - if (val.matches("-?[\\d\\.]+") && !cssNumber.test(val)) { + if (val.matches("-?[\\d\\.]+") && !cssNumber.test(prop)) { val += "px"; } e.getStyle().setProperty(prop, val);