Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: experimental/PdfViewer/SkPdfRenderer.cpp

Issue 22269002: pdfviewer: debug code for crash (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfRenderer.cpp
===================================================================
--- experimental/PdfViewer/SkPdfRenderer.cpp (revision 10543)
+++ experimental/PdfViewer/SkPdfRenderer.cpp (working copy)
@@ -265,7 +265,7 @@
const SkClipStack::Element* elem;
double y = 0;
int total = 0;
- while (elem = iter.next()) {
+ while ((elem = iter.next()) != NULL) {
total++;
y += 30;
« no previous file with comments | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698