From e5d0def6d9864463565f9ca6a6e9ceedcb72712d Mon Sep 17 00:00:00 2001 From: "mike@reedtribe.org" Date: Fri, 8 Apr 2011 00:53:48 +0000 Subject: [PATCH] fix infinite loop (doh) git-svn-id: http://skia.googlecode.com/svn/trunk@1081 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/effects/SkLayerDrawLooper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp index 6aeefd8886..32b56d6948 100644 --- a/src/effects/SkLayerDrawLooper.cpp +++ b/src/effects/SkLayerDrawLooper.cpp @@ -41,6 +41,8 @@ bool SkLayerDrawLooper::next(SkCanvas* canvas, SkPaint* paint) { *paint = fCurrRec->fPaint; canvas->save(SkCanvas::kMatrix_SaveFlag); canvas->translate(fCurrRec->fOffset.fX, fCurrRec->fOffset.fY); + fCurrRec = fCurrRec->fNext; + return true; }