mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Editor plugin: Bugfixing
This commit is contained in:
@ -2618,8 +2618,10 @@ void PDFPageContentElementEdited::drawPage(QPainter* painter,
|
||||
if (const PDFEditedPageContentElementPath* pathElement = m_element->asPath())
|
||||
{
|
||||
const PDFPageContentProcessorState& state = m_element->getState();
|
||||
painter->setPen(pdf::PDFPainterHelper::createPenFromState(&state, state.getAlphaStroking()));
|
||||
painter->setBrush(pdf::PDFPainterHelper::createBrushFromState(&state, state.getAlphaFilling()));
|
||||
QPen pen = pdf::PDFPainterHelper::createPenFromState(&state, state.getAlphaStroking());
|
||||
QBrush brush = pdf::PDFPainterHelper::createBrushFromState(&state, state.getAlphaFilling());
|
||||
painter->setPen(pathElement->getStrokePath() ? pen : QPen(Qt::NoPen));
|
||||
painter->setBrush(pathElement->getFillPath() ? brush : QBrush(Qt::NoBrush));
|
||||
painter->drawPath(pathElement->getPath());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user