From 6e0b3484dd0360eef5365ce23144bfc59ade89ba Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:35:39 +0100 Subject: Fix paragraph layouting index out of bounds bug (#3607) --- tests/ref/bugs/flow-5.png | Bin 0 -> 20421 bytes tests/typ/bugs/flow-5.typ | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/ref/bugs/flow-5.png create mode 100644 tests/typ/bugs/flow-5.typ (limited to 'tests') diff --git a/tests/ref/bugs/flow-5.png b/tests/ref/bugs/flow-5.png new file mode 100644 index 00000000..648c8c44 Binary files /dev/null and b/tests/ref/bugs/flow-5.png differ diff --git a/tests/typ/bugs/flow-5.typ b/tests/typ/bugs/flow-5.typ new file mode 100644 index 00000000..5e580b9e --- /dev/null +++ b/tests/typ/bugs/flow-5.typ @@ -0,0 +1,13 @@ +// This bug caused an index-out-of-bounds panic when layouting paragraphs needed +// multiple reorderings. + +--- +#set page(height: 200pt) +#lorem(30) + +#figure(placement: auto, block(height: 100%)) + +#lorem(10) + +#lorem(10) + -- cgit v1.2.3