Closed Blatko1 closed 2 years ago
Changing line 448:
if linebreak >= self.linebreak_prev {
self.linebreak_prev = linebreak;
self.linebreak_pos = self.current_pos;
self.linebreak_idx = (self.glyphs.len() - 1).min(0); // <--- CHANGED
}
and changing line 498:
if let Some(line) = self.line_metrics.last_mut() {
line.padding = self.max_width - (self.current_pos - self.start_pos);
line.line_end = (self.glyphs.len() - 1).min(0); // <--- CHANGED
}
in src/layout seems to fix the problem.
It doesn't actually cause a logic issue, there's a check later on for this. That's unfortunate this triggers an error for you, I'll resolve it
0.7.1 published
Running layout example on the newest version 0.7.0 prints this error message;
It seems to fail in this line of code:
where the subtraction happens: