mirror of https://github.com/ppy/osu
Use PointConverter
This commit is contained in:
parent
9182f5dafb
commit
82725b59c0
|
@ -29,9 +29,7 @@ public override Point ReadJson(JsonReader reader, Type objectType, Point existin
|
|||
|
||||
Debug.Assert(str != null);
|
||||
|
||||
var split = str.Split(',');
|
||||
|
||||
return new Point(int.Parse(split[0]), int.Parse(split[1]));
|
||||
return new PointConverter().ConvertFromString(str) as Point? ?? new Point();
|
||||
}
|
||||
|
||||
var point = new Point();
|
||||
|
|
Loading…
Reference in New Issue