Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix QTransform::quadToQuad() to work with QRectF
A typical usage for mapping a 4-point polygon to a rectangle might be QTransform transform; bool ok = QTransform::quadToQuad(polygon, polygon->boundingRect(), transform); It works because the QPolygonF(QRectF) ctor is implicitly called on the second argument; but that ctor turns it into a 5-point polygon. So it should be legal for QTransform functions to work with 5-point closed paths. Fixes: QTBUG-21329 Change-Id: Iae249012e14b8a3e8d3b0dfa35da8f9759359832 Pick-to: 6.8 6.5 5.15 Reviewed-by: Eirik Aavitsland <[email protected]> (cherry picked from commit 48b1af9) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
- Loading branch information