mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-07 12:49:12 +01:00
DroidFish: Ignore "pt" unit when parsing SVG files.
This commit is contained in:
parent
9447c67ce7
commit
0cfda3577c
|
@ -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 + "'");
|
||||
|
|
Loading…
Reference in New Issue
Block a user