From 824bc316267669a4d512cfdfe54eb65fb8ca1e2c Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 8 Jun 2015 13:36:52 -0700 Subject: [PATCH] Add Point.origin for new Point(0.0, 0.0) R=eseidel@chromium.org, ianh@google.com Review URL: https://codereview.chromium.org/1166183002 --- examples/raw/sector_layout.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/raw/sector_layout.dart b/examples/raw/sector_layout.dart index d3186c3c46..1c8ed3fdf6 100644 --- a/examples/raw/sector_layout.dart +++ b/examples/raw/sector_layout.dart @@ -257,7 +257,7 @@ class RenderSectorRing extends RenderSectorWithChildren { RenderSector child = firstChild; while (child != null) { assert(child.parentData is SectorChildListParentData); - canvas.paintChild(child, new Point(0.0, 0.0)); + canvas.paintChild(child, Point.origin); child = child.parentData.nextSibling; } } @@ -362,7 +362,7 @@ class RenderSectorSlice extends RenderSectorWithChildren { RenderSector child = firstChild; while (child != null) { assert(child.parentData is SectorChildListParentData); - canvas.paintChild(child, new Point(0.0, 0.0)); + canvas.paintChild(child, Point.origin); child = child.parentData.nextSibling; } }