check for null-device in iterator

git-svn-id: http://skia.googlecode.com/svn/trunk@3251 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-02-24 16:38:58 +00:00
parent 2afbf07495
commit f68c5e2f9f

View File

@ -232,8 +232,8 @@ public:
}
}
if (NULL != fCurrLayer) {
const DeviceCM* rec = fCurrLayer;
const DeviceCM* rec = fCurrLayer;
if (rec && rec->fDevice) {
fMatrix = rec->fMatrix;
fClip = &((SkRasterClip*)&rec->fClip)->forceGetBW();