Fix possible generation of overlaps and lines with negative start or length by tpp. Also flip kf-after/kf-before.
Fix possible generation of overlaps and lines with negative start or length by tpp.
Also flip kf-after/kf-before.

tp7/Prass,Zeght/Prass