Commit 48623c97 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander Trofimov

Устранено падение при открытии битых файлов.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65208 954022d7-b5bf-4e40-9824-e11837661b57
parent f1e18c56
...@@ -93,9 +93,7 @@ namespace PdfReader ...@@ -93,9 +93,7 @@ namespace PdfReader
if (!m_pPDFDocument || !m_pPDFDocument->CheckValidation()) if (!m_pPDFDocument || !m_pPDFDocument->CheckValidation())
{ {
if (m_pPDFDocument) RELEASEOBJECT(m_pPDFDocument);
delete m_pPDFDocument;
return false; return false;
} }
...@@ -109,6 +107,9 @@ namespace PdfReader ...@@ -109,6 +107,9 @@ namespace PdfReader
} }
EError CPdfReader::GetError() EError CPdfReader::GetError()
{ {
if (!m_pPDFDocument)
return errorOpenFile;
return m_pPDFDocument->GetErrorCode(); return m_pPDFDocument->GetErrorCode();
} }
int CPdfReader::GetPagesCount() int CPdfReader::GetPagesCount()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment