Fix IOfficeDrawingFile for CPdfReader

This commit is contained in:
Svetlana Kulikova
2023-09-13 16:58:36 +03:00
parent adc2abc171
commit 3ecfc82667
3 changed files with 4 additions and 6 deletions

View File

@ -709,7 +709,7 @@ void CPdfFile::ToXml(const std::wstring& sFile, bool bSaveStreams)
bool CPdfFile::LoadFromFile(const std::wstring& file, const std::wstring& options, const std::wstring& owner_password, const std::wstring& user_password)
{
m_pInternal->pReader = new CPdfReader(m_pInternal->pAppFonts, this);
m_pInternal->pReader = new CPdfReader(m_pInternal->pAppFonts);
if (!m_pInternal->pReader)
return false;
m_pInternal->wsSrcFile = file;
@ -720,7 +720,7 @@ bool CPdfFile::LoadFromFile(const std::wstring& file, const std::wstring& option
}
bool CPdfFile::LoadFromMemory(BYTE* data, DWORD length, const std::wstring& options, const std::wstring& owner_password, const std::wstring& user_password)
{
m_pInternal->pReader = new CPdfReader(m_pInternal->pAppFonts, this);
m_pInternal->pReader = new CPdfReader(m_pInternal->pAppFonts);
if (!m_pInternal->pReader)
return false;
m_pInternal->wsSrcFile = L"";