mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-20 04:32:17 +01:00
DroidFish: Ignore "pt" unit when parsing SVG files.
This commit is contained in:
@@ -597,7 +597,7 @@ public class SVGParser {
|
|||||||
if (v == null) {
|
if (v == null) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
} else {
|
} else {
|
||||||
if (v.endsWith("px")) {
|
if (v.endsWith("px") || v.endsWith("pt")) {
|
||||||
v = v.substring(0, v.length() - 2);
|
v = v.substring(0, v.length() - 2);
|
||||||
}
|
}
|
||||||
// Log.d(TAG, "Float parsing '" + name + "=" + v + "'");
|
// Log.d(TAG, "Float parsing '" + name + "=" + v + "'");
|
||||||
|
|||||||
Reference in New Issue
Block a user