diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-12 17:48:30 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-12 17:48:30 +0200 |
| commit | c5cdbaeaf84bbd68b4ba18979c796f4f0f0f7cd7 (patch) | |
| tree | 9446682df151f977c67a04f57aaa823ee58cc123 /library | |
| parent | 6720d8c3017af787b8dce42e9fa15468f281629d (diff) | |
Fix bug with extra table lines
Fixes #183
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/layout/table.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs index 3235c790..357263f4 100644 --- a/library/src/layout/table.rs +++ b/library/src/layout/table.rs @@ -175,6 +175,10 @@ impl Layout for TableElem { // Add lines and backgrounds. for (frame, rows) in layout.fragment.iter_mut().zip(&layout.rows) { + if layout.cols.is_empty() || rows.is_empty() { + continue; + } + // Render table lines. if let Some(stroke) = &stroke { let thickness = stroke.thickness; |
