Commit 667b9858 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix build with Qt < 5.10

parent 844b976d
......@@ -189,8 +189,11 @@ void KisMultigridPatternGenerator::generate(KisProcessingInformation dstInfo,
lineWidthTransform.scale(scaleForLineWidth, scaleForLineWidth);
shape = lineWidthTransform.map(shape);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
if (shape.intersects(bounds) && shape.boundingRect().width()>0) {
#else
if (!shape.intersected(bounds).isEmpty() && shape.boundingRect().width()>0) {
#endif
QPainterPath p;
p.addPolygon(lineWidthTransform.map(shape));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment