mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix table panic
This commit is contained in:
parent
cd7630415f
commit
36cae88799
@ -67,7 +67,7 @@ impl Layout for TableNode {
|
|||||||
let stroke = styles.get(Self::STROKE).map(|paint| Stroke { paint, thickness });
|
let stroke = styles.get(Self::STROKE).map(|paint| Stroke { paint, thickness });
|
||||||
let padding = styles.get(Self::PADDING);
|
let padding = styles.get(Self::PADDING);
|
||||||
|
|
||||||
let cols = self.tracks.x.len();
|
let cols = self.tracks.x.len().max(1);
|
||||||
let children = self
|
let children = self
|
||||||
.children
|
.children
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -7,3 +7,7 @@
|
|||||||
thickness: 2pt,
|
thickness: 2pt,
|
||||||
[A], [B], [C], [], [], [D \ E \ F \ \ \ G], [H],
|
[A], [B], [C], [], [], [D \ E \ F \ \ \ G], [H],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
---
|
||||||
|
// Ref: false
|
||||||
|
#table()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user