Index: core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
index 472e96a3c409ce15418e3b841cbbc30673075f37..89ac8ac1438e3e9ef403dc31d9bdbbcc6e165b66 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
@@ -790,10 +790,10 @@ void CPDF_RenderStatus::DrawTextPathWithPattern( |
ProcessPath(&path, pObj2Device); |
} |
} |
+ |
CFX_PathData* CPDF_Font::LoadGlyphPath(FX_DWORD charcode, int dest_width) { |
int glyph_index = GlyphFromCharCode(charcode); |
- if (m_Font.m_Face == NULL) { |
- return NULL; |
- } |
+ if (!m_Font.GetFace()) |
+ return nullptr; |
return m_Font.LoadGlyphPath(glyph_index, dest_width); |
} |