Merge pull request #281 from Hixie/buttons

Fix the crash for buttons.
This commit is contained in:
Ian Hickson 2015-07-24 17:55:13 -07:00
commit baaa892864

View File

@ -22,7 +22,7 @@ Color lerpColor(Color a, Color b, double t) {
if (a == null && b == null)
return null;
if (a == null)
return _scaleAlpha(b, t);
return _scaleAlpha(a, t);
if (b == null)
return _scaleAlpha(b, 1.0 - t);
return new Color.fromARGB(