Work around animated paths getting varying number of elements


QPainterPath will not store null curve elements where all points are
identical. That can be a problem for handling animated paths, where an
element may be null in some keyframes but not in others, since then
element-by-element interpolation from one path to another breaks down.
Work around by giving a tiny offset to any null element, making it
non-null.

Pick-to: 6.11
Change-Id: Ia456e909fa3ecb94e1f3cb084340b61a17c8e2cf
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit1ba771a5018b681fd3db47044b8051fc7170ca6a
parent0e5280a77287dd0f9038a11d504f15f47291ecc6
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeTue, 23 Dec 2025 13:06:40 +0100