Separation color space, some bugfixing

This commit is contained in:
Jakub Melka
2019-03-17 16:12:36 +01:00
parent 2964637949
commit 8c417b2afb
5 changed files with 130 additions and 23 deletions

View File

@ -75,14 +75,7 @@ void PDFPainter::performPathPainting(const QPainterPath& path, bool stroke, bool
void PDFPainter::performClipping(const QPainterPath& path, Qt::FillRule fillRule)
{
Q_ASSERT(path.fillRule() == fillRule);
if (m_painter->hasClipping())
{
m_painter->setClipPath(path, Qt::IntersectClip);
}
else
{
addError(PDFTranslationContext::tr("The paint device doesn't support clipping. Path was not clipped."));
}
m_painter->setClipPath(path, Qt::IntersectClip);
}
void PDFPainter::performUpdateGraphicsState(const PDFPageContentProcessorState& state)