| commit | 84831acfad480349ae22a46c754e19287b818f54 | [log] [tgz] |
|---|---|---|
| author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 14 22:09:54 2013 +0000 |
| committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 14 22:09:54 2013 +0000 |
| tree | 8b1a1ebc1c012e840003fd1e33bd73d1288c8737 | |
| parent | d386b0eb03b75e302906f2251bbb0aa28ce41a97 [diff] [blame] |
fix all the false --> NULL issues in the gradient code BUG= Review URL: https://codereview.appspot.com/7095056 git-svn-id: http://skia.googlecode.com/svn/trunk@7170 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp index 6fab6d4..37b8a51 100644 --- a/src/effects/gradients/SkTwoPointConicalGradient.cpp +++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp
@@ -690,7 +690,7 @@ // invert the localM, translate to center1, rotate so center2 is on x axis. SkMatrix matrix; if (!this->getLocalMatrix().invert(&matrix)) { - return false; + return NULL; } matrix.postTranslate(-fCenter1.fX, -fCenter1.fY);