DroidFish: Ignore "pt" unit when parsing SVG files.

This commit is contained in:
Peter Osterlund 2012-06-07 17:28:32 +00:00
parent 9447c67ce7
commit 0cfda3577c

View File

@ -597,7 +597,7 @@ public class SVGParser {
if (v == null) {
return defaultValue;
} else {
if (v.endsWith("px")) {
if (v.endsWith("px") || v.endsWith("pt")) {
v = v.substring(0, v.length() - 2);
}
// Log.d(TAG, "Float parsing '" + name + "=" + v + "'");