don't use SkAutoPathBoundsUpdate until after we've checked for degenerate
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 18 Jan 2011 20:35:51 +0000 (20:35 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 18 Jan 2011 20:35:51 +0000 (20:35 +0000)
commitabf15c189b6333aa77a6c3f566cc67f4634ba338
tree28481afbaea99cfeda68ed340b5abf66a19d3334
parent3f3ffd6ad9fa4cbaef1f2a2efee2b03bf5891b3e
don't use SkAutoPathBoundsUpdate until after we've checked for degenerate
dimensions, otherwise we might set the bounds, only to then abort and not
set any points.

Fixes assert if you call addRoundRect(r, 10, 10) when r is inverted
(i.e. r.fLeft > r.fRight)

git-svn-id: http://skia.googlecode.com/svn/trunk@704 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPath.cpp