Index: src/images/SkImageDecoder_libwebp.cpp |
diff --git a/src/images/SkImageDecoder_libwebp.cpp b/src/images/SkImageDecoder_libwebp.cpp |
index decccd17fb2830f2dbd9ba26b9a52865dc221983..a7c9610d07ad0d7313406dd79d9a644cede5b22f 100644 |
--- a/src/images/SkImageDecoder_libwebp.cpp |
+++ b/src/images/SkImageDecoder_libwebp.cpp |
@@ -395,8 +395,8 @@ bool SkWEBPImageDecoder::onDecodeSubset(SkBitmap* decodedBitmap, |
} |
if (!directDecode) { |
- cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(), |
- region.width(), region.height(), rect.x(), rect.y()); |
+ return cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(), |
+ region.width(), region.height(), rect.x(), rect.y()); |
} |
return true; |
} |