mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #1: Optimize page rendering thread management
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user