Commit 2b22c121 authored by Adam Barth's avatar Adam Barth

Merge pull request #514 from apwilson/image_assert

Fix asserts related to image drawing.
parents bcd0d8fe 440a63a5
...@@ -1406,7 +1406,7 @@ class RenderImage extends RenderBox { ...@@ -1406,7 +1406,7 @@ class RenderImage extends RenderBox {
return constraints.constrain(new Size(width, height)); return constraints.constrain(new Size(width, height));
} }
} }
return constraints.constrain(new Size(width, height)); return constraints.constrain(new Size(_image.width.toDouble(), _image.height.toDouble()));
} }
double getMinIntrinsicWidth(BoxConstraints constraints) { double getMinIntrinsicWidth(BoxConstraints constraints) {
......
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