Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 7723cafb12358b10cebd28adb49b15abafd8b1bf..4a577fcff34ac1632541c72fca7d1734f1a2dcd1 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -483,8 +483,8 @@ bool SkPDFDocument::onClose(SkWStream* stream) { |
// Build font subsetting info before calling addObjectRecursively(). |
for (const auto& entry : fGlyphUsage) { |
- sk_sp<SkPDFFont> subsetFont( |
- entry.fFont->getFontSubset(&entry.fGlyphSet)); |
+ sk_sp<SkPDFObject> subsetFont = |
+ entry.fFont->getFontSubset(&entry.fGlyphSet); |
if (subsetFont) { |
fObjectSerializer.fSubstituteMap.setSubstitute( |
entry.fFont, subsetFont.get()); |