Commit 49fb4923 authored by Adam Barth's avatar Adam Barth

Fix crash in stocks app painting

parent ba8f6a01
......@@ -15,7 +15,7 @@ class StockArrowPainter extends CustomPainter {
paint.strokeWidth = 1.0;
const double padding = 2.0;
assert(padding > paint.strokeWidth / 2.0); // make sure the circle remains inside the box
double r = (size - padding) / 2.0; // radius of the circle
double r = (size.shortestSide - padding) / 2.0; // radius of the circle
double centerX = padding + r;
double centerY = padding + r;
......
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