Fix bug 73493

This commit is contained in:
Svetlana Kulikova
2025-03-12 16:18:35 +03:00
parent 37a5ce4781
commit 6e9500a6e7

View File

@ -474,6 +474,13 @@ namespace PdfReader
void RendererOutputDev::restoreState(GfxState* pGState)
{
RELEASEINTERFACE(m_pSoftMask);
if (m_sStates.empty())
{ // Несбалансированный q/Q - сломанный файл
updateAll(pGState);
UpdateAllClip(pGState);
return;
}
m_pSoftMask = m_sStates.back().pSoftMask;
if (c_nGrRenderer == m_lRendererType)
{