Browse Source

Merge pull request #172 in CORE/base-third from ~KERRY/base-third:release/10.0 to release/10.0

* commit '3e19c0c692220ac153798cd5194c3c2189110152':
  无jira任务,打包报错
bugfix/10.0
ju 6 years ago
parent
commit
3877da6add
  1. 5
      fine-itext/src/com/fr/third/v2/lowagie/text/html/CSSUtils.java

5
fine-itext/src/com/fr/third/v2/lowagie/text/html/CSSUtils.java

@ -91,6 +91,9 @@ public class CSSUtils {
public static Float parseFloat(String str){
float result = 0.0f;
if(str == null){
return result;
}
try {
if(str.endsWith("px") || str.endsWith("pt")){
result = Float.parseFloat(str.substring(0, str.length() - 2));
@ -100,7 +103,7 @@ public class CSSUtils {
result = Float.parseFloat(str);
}
}catch (NumberFormatException e){
return result;
}
return result;
}

Loading…
Cancel
Save