Index: xfa/fgas/font/cfgas_gefont.cpp |
diff --git a/xfa/fgas/font/cfgas_gefont.cpp b/xfa/fgas/font/cfgas_gefont.cpp |
index ffe791aab52797739a2f4ab305f95dbd23aabba1..c1dfa2b5b9c6ceb05d9dcc3c1904c8a96a892bcb 100644 |
--- a/xfa/fgas/font/cfgas_gefont.cpp |
+++ b/xfa/fgas/font/cfgas_gefont.cpp |
@@ -209,7 +209,7 @@ bool CFGAS_GEFont::LoadFontInternal(IFX_Stream* pFontStream, bool bSaveStream) { |
if (bSaveStream) |
m_pStream.reset(pFontStream); |
- m_pFileRead.reset(FX_CreateFileRead(pFontStream, false)); |
+ m_pFileRead.reset(pFontStream->MakeSeekableReadStream()); |
m_pFont = new CFX_Font; |
if (m_pFont->LoadFile(m_pFileRead.get())) |
return InitFont(); |