M7: compile the paragraph fixture on current main (#2517)

The paragraph-key helper has to carry reflow text, which a width change uses. ClosePath on an empty subpath is a match guard so the edit crate still passes clippy.
This commit is contained in:
ihsan mokhlisse
2026-10-29 10:11:18 +01:00
parent 21b911ae42
commit 62af4f87ca
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -186,11 +186,9 @@ impl ImageState {
self.path.curve_to(self.point(x1, y1), end, end);
}
}
b"h" => {
// ClosePath with no subpath panics by the same contract (#3581).
if self.path.elements().last().is_some() {
self.path.close_path();
}
// ClosePath with no subpath panics by the same contract (#3581).
b"h" if self.path.elements().last().is_some() => {
self.path.close_path();
}
b"re" => {
if let Some([x, y, w, h]) = op.nums::<4>() {
+1 -1
View File
@@ -235,7 +235,7 @@ fn group_layout(lines: &[TextLine], mixed: bool) -> Vec<TextBlock> {
// A bullet of its own opens a list item (#2564): such a row is a new paragraph, and
// letting it join is what made an edit of the row above delete this item and the ones
// after it.
if starts_list_item(&row, lines) {
if starts_list_item(row, lines) {
return false;
}
let Some(prev_row) = block.rows.last() else { return false };