Commit 4f9f5656 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #281 from Hixie/buttons

Fix the crash for buttons.
parents df7fdb5b be5545cf
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment