Don't call fit_line unless there's work to do. This prevents array bounds warnings/errors.