Issue #185: Latest git fails to build in linux

This commit is contained in:
Jakub Melka 2024-07-10 20:19:06 +02:00
parent 8240ae061c
commit 2a93ca5a1f
2 changed files with 7 additions and 6 deletions

View File

@ -302,7 +302,7 @@ void PDFBLPaintEngine::updateState(const QPaintEngineState& updatedState)
if (updatedState.state().testFlag(QPaintEngine::DirtyTransform)) if (updatedState.state().testFlag(QPaintEngine::DirtyTransform))
{ {
m_currentTransform = updatedState.transform(); m_currentTransform = updatedState.transform();
m_blContext->setMatrix(getBLMatrix(updatedState.transform())); m_blContext->setTransform(getBLMatrix(updatedState.transform()));
} }
if (updatedState.state().testFlag(QPaintEngine::DirtyFont)) if (updatedState.state().testFlag(QPaintEngine::DirtyFont))
@ -580,7 +580,7 @@ void PDFBLPaintEngine::drawPathImpl(const QPainterPath& path, bool enableStroke,
if (!fillPath.isEmpty()) if (!fillPath.isEmpty())
{ {
m_blContext->save(); m_blContext->save();
m_blContext->resetMatrix(); m_blContext->resetTransform();
m_blContext->fillPath(getBLPath(fillPath)); m_blContext->fillPath(getBLPath(fillPath));
m_blContext->restore(); m_blContext->restore();
} }
@ -596,7 +596,7 @@ void PDFBLPaintEngine::drawPathImpl(const QPainterPath& path, bool enableStroke,
if (!finalTransformedStrokedPath.isEmpty()) if (!finalTransformedStrokedPath.isEmpty())
{ {
m_blContext->save(); m_blContext->save();
m_blContext->resetMatrix(); m_blContext->resetTransform();
setBLBrush(m_blContext.value(), m_currentPen.brush()); setBLBrush(m_blContext.value(), m_currentPen.brush());
m_blContext->fillPath(getBLPath(finalTransformedStrokedPath)); m_blContext->fillPath(getBLPath(finalTransformedStrokedPath));
m_blContext->restore(); m_blContext->restore();
@ -1183,10 +1183,10 @@ void PDFBLPaintEngine::updateClipping(std::optional<QRegion> clipRegion,
if (m_clipSingleRect) if (m_clipSingleRect)
{ {
BLMatrix2D matrix = m_blContext->userMatrix(); BLMatrix2D matrix = m_blContext->userTransform();
m_blContext->resetMatrix(); m_blContext->resetTransform();
m_blContext->clipToRect(getBLRect(m_finalClipPath->boundingRect())); m_blContext->clipToRect(getBLRect(m_finalClipPath->boundingRect()));
m_blContext->setMatrix(matrix); m_blContext->setTransform(matrix);
} }
else else
{ {

View File

@ -1,4 +1,5 @@
CURRENT: CURRENT:
- Issue #185: Latest git fails to build in linux
V: 1.4.0.0 4.7.2024 V: 1.4.0.0 4.7.2024
- Issue #190: PageMaster crash + black bubbles instead of bubbles with correct color - Issue #190: PageMaster crash + black bubbles instead of bubbles with correct color