Commit 440a63a5 authored by Andrew Wilson's avatar Andrew Wilson

Fix assert's related to image drawing.

parent 66e64023
...@@ -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