Set scale to 1,1
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3f556bcd Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3f556bcd Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3f556bcd Branch: refs/heads/develop Commit: 3f556bcdae441a1cc3d04f1949ebb190ea48ff93 Parents: fe4b40d Author: Om <[email protected]> Authored: Mon Sep 8 00:20:29 2014 -0700 Committer: Om <[email protected]> Committed: Mon Sep 8 00:20:29 2014 -0700 ---------------------------------------------------------------------- .../FlexJSUI/src/org/apache/flex/core/graphics/Path.as | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3f556bcd/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as index d626294..f0498db 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics/Path.as @@ -37,14 +37,7 @@ package org.apache.flex.core.graphics } segments = new PathSegmentsCollection(data); if (segments) - { - var rcBounds:Rectangle = segments.getBounds() - var sx:Number = rcBounds.width == 0 ? 1 : width / rcBounds.width; - var sy:Number = rcBounds.height == 0 ? 1 : height / rcBounds.height; - segments.generateGraphicsPath(graphicsPath, x, y, sx, sy); - } - if (segments) - segments.generateGraphicsPath(graphicsPath, x, y, sx, sy); + segments.generateGraphicsPath(graphicsPath, x, y, 1, 1); graphics.drawPath(graphicsPath.commands, graphicsPath.data); graphics.endFill();
