mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 06:24:28 +08:00
Refactoring
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user