Skip to content

Commit

Permalink
Issue #185: Latest git fails to build in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubMelka committed Jul 10, 2024
1 parent 8240ae0 commit 2a93ca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Pdf4QtLibCore/sources/pdfblpainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void PDFBLPaintEngine::updateState(const QPaintEngineState& updatedState)
if (updatedState.state().testFlag(QPaintEngine::DirtyTransform))
{
m_currentTransform = updatedState.transform();
m_blContext->setMatrix(getBLMatrix(updatedState.transform()));
m_blContext->setTransform(getBLMatrix(updatedState.transform()));
}

if (updatedState.state().testFlag(QPaintEngine::DirtyFont))
Expand Down Expand Up @@ -580,7 +580,7 @@ void PDFBLPaintEngine::drawPathImpl(const QPainterPath& path, bool enableStroke,
if (!fillPath.isEmpty())
{
m_blContext->save();
m_blContext->resetMatrix();
m_blContext->resetTransform();
m_blContext->fillPath(getBLPath(fillPath));
m_blContext->restore();
}
Expand All @@ -596,7 +596,7 @@ void PDFBLPaintEngine::drawPathImpl(const QPainterPath& path, bool enableStroke,
if (!finalTransformedStrokedPath.isEmpty())
{
m_blContext->save();
m_blContext->resetMatrix();
m_blContext->resetTransform();
setBLBrush(m_blContext.value(), m_currentPen.brush());
m_blContext->fillPath(getBLPath(finalTransformedStrokedPath));
m_blContext->restore();
Expand Down Expand Up @@ -1183,10 +1183,10 @@ void PDFBLPaintEngine::updateClipping(std::optional<QRegion> clipRegion,

if (m_clipSingleRect)
{
BLMatrix2D matrix = m_blContext->userMatrix();
m_blContext->resetMatrix();
BLMatrix2D matrix = m_blContext->userTransform();
m_blContext->resetTransform();
m_blContext->clipToRect(getBLRect(m_finalClipPath->boundingRect()));
m_blContext->setMatrix(matrix);
m_blContext->setTransform(matrix);
}
else
{
Expand Down
1 change: 1 addition & 0 deletions RELEASES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CURRENT:
- Issue #185: Latest git fails to build in linux

V: 1.4.0.0 4.7.2024
- Issue #190: PageMaster crash + black bubbles instead of bubbles with correct color
Expand Down

0 comments on commit 2a93ca5

Please sign in to comment.