Issue #1: Optimize page rendering thread management

This commit is contained in:
Jakub Melka
2022-01-30 15:21:31 +01:00
parent 04ad80ee81
commit 22c40b227c
3 changed files with 196 additions and 59 deletions

View File

@ -12567,10 +12567,13 @@ void PDFXFAEngineImpl::drawUiCheckButton(const xfa::XFA_checkButton* checkButton
painter->setBrush(Qt::NoBrush);
bool showBorder = true;
if (const xfa::XFA_border* border = checkButton->getBorder())
if (checkButton)
{
const xfa::XFA_BaseNode::PRESENCE presence = border->getPresence();
showBorder = presence == xfa::XFA_BaseNode::PRESENCE::Visible;
if (const xfa::XFA_border* border = checkButton->getBorder())
{
const xfa::XFA_BaseNode::PRESENCE presence = border->getPresence();
showBorder = presence == xfa::XFA_BaseNode::PRESENCE::Visible;
}
}
if (showBorder)