Fix floating point precision loss

766.85714f loses precision as a floating number, so remove the last
decimal place.

Test: Existing tests pass
Change-Id: Icf85055819d63c925dc54c04a83a513adb599ea3
This commit is contained in:
Maurice Lam 2017-03-28 12:34:35 -07:00
parent 339cbc0f38
commit 30fdf76d59

View file

@ -228,7 +228,7 @@ public class GlifPatternDrawable extends Drawable {
p.close();
p = sPatternPaths[5] = new Path();
p.moveTo(178.44286f, 766.85714f);
p.moveTo(178.44286f, 766.8571f);
p.lineTo(308.7f, 768f);
p.cubicTo(381.7f, 604.6f, 481.6f, 344.3f, 562.2f, 0f);
p.lineTo(0f, 0f);