Fix fatal bug in GetDiscontinuousLine