/libs/pigment/resources/KoSegmentGradient.cpp line 237 Q_ASSERT(t >= 0 || t <= 1); // probably && required
Looks like that code is never executed, since that line is 13 years old...
Fixed in 71ca2f24e832e4be7453a5708b8b24da546496bc