Index: experimental/PdfViewer/SkPdfFont.cpp |
=================================================================== |
--- experimental/PdfViewer/SkPdfFont.cpp (revision 10419) |
+++ experimental/PdfViewer/SkPdfFont.cpp (working copy) |
@@ -255,10 +255,10 @@ |
return NULL; // TODO(edisonn): report default one? |
} |
- if (dict->data() == NULL) { |
- dict->setData(fontFromPdfDictionaryOnce(doc, dict)); |
+ if (!dict->hasData(SkPdfObject::kFont_Data)) { |
+ dict->setData(fontFromPdfDictionaryOnce(doc, dict), SkPdfObject::kFont_Data); |
} |
- return (SkPdfFont*)dict->data(); |
+ return (SkPdfFont*)dict->data(SkPdfObject::kFont_Data); |
} |