summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r--core/fpdfapi/page/cpdf_textstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_textstate.cpp b/core/fpdfapi/page/cpdf_textstate.cpp
index ed90bd310d..6dbad55ba6 100644
--- a/core/fpdfapi/page/cpdf_textstate.cpp
+++ b/core/fpdfapi/page/cpdf_textstate.cpp
@@ -134,7 +134,7 @@ void CPDF_TextState::TextData::SetFont(CPDF_Font* pFont) {
if (pPageData && m_pFont && !pPageData->IsForceClear())
pPageData->ReleaseFont(m_pFont->GetFontDict());
- m_pDocument = pFont ? pFont->m_pDocument : nullptr;
+ m_pDocument = pFont ? pFont->GetDocument() : nullptr;
m_pFont = pFont;
}