Fixing the degenerate cases in line drawing.
Authored by: nerius 2023-10-30
Parent: [r1358]
Child: [r1360]