diff --git a/src/app/puzzle/scene/vpgraphicspiece.cpp b/src/app/puzzle/scene/vpgraphicspiece.cpp index aa9fe8fc8..9e1be89a0 100644 --- a/src/app/puzzle/scene/vpgraphicspiece.cpp +++ b/src/app/puzzle/scene/vpgraphicspiece.cpp @@ -809,7 +809,7 @@ void VPGraphicsPiece::PaintInternalPaths(QPainter *painter, const VPPiecePtr &pi QVector points = piecePath.Points(); const QTransform matrix = VGObject::FlippingMatrix(piece->GetSeamMirrorLine()); std::transform(points.begin(), points.end(), points.begin(), - [matrix](const VLayoutPoint &point) { return VAbstractPiece::MapPoint(point, matrix); }); + [&matrix](const VLayoutPoint &point) { return VAbstractPiece::MapPoint(point, matrix); }); QVector casted; CastTo(points, casted); path.addPath(piece->GetMatrix().map(VPiecePath::MakePainterPath(casted)));