Merge remote-tracking branch 'refs/remotes/git-svn'
fixed SkPathUtils.cpp:78
Fixed PathUtils.cpp:90
Fixed the float being passed to an int method
Fixed the bugs that crashed the build bots
git-svn-id: http://skia.googlecode.com/svn/trunk@9847 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/SkPathUtils.cpp b/src/utils/SkPathUtils.cpp
index f0bea40..6a0b121 100644
--- a/src/utils/SkPathUtils.cpp
+++ b/src/utils/SkPathUtils.cpp
@@ -75,7 +75,8 @@
start = i; // mark beginning of span
}else { // if transition off add the span as a path
inRun = 0;
- path->addRect(SkRect::MakeXYWH(start, lineIdx, i-start, SK_Scalar1),
+ path->addRect(SkRect::MakeXYWH(start, lineIdx,
+ SkIntToScalar(i-start), SK_Scalar1),
SkPath::kCW_Direction);
}
}