Refactoring

This commit is contained in:
Oleg Korshul
2021-10-05 17:36:53 +03:00
parent c75af891b2
commit 5487058744
8 changed files with 49 additions and 313 deletions

View File

@ -302,20 +302,10 @@ BYTE* CXpsFile::GetStructure()
}
BYTE* CXpsFile::GetGlyphs (int nPageIndex, int nRasterW, int nRasterH)
{
if (!m_pInternal->m_pDocument->CompareWH(nPageIndex, nRasterW, nRasterH))
{
BYTE* oTemp = ConvertToPixels(nPageIndex, nRasterW, nRasterH);
RELEASEARRAYOBJECTS(oTemp);
}
return m_pInternal->m_pDocument->GetPageGlyphs(nPageIndex);
}
BYTE* CXpsFile::GetLinks(int nPageIndex, int nRasterW, int nRasterH)
{
if (!m_pInternal->m_pDocument->CompareWH(nPageIndex, nRasterW, nRasterH))
{
BYTE* oTemp = ConvertToPixels(nPageIndex, nRasterW, nRasterH);
RELEASEARRAYOBJECTS(oTemp);
}
return m_pInternal->m_pDocument->GetPageLinks(nPageIndex);
}
#endif