mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
2dfb9cdd6e
Columns hidden in the source ODS (table:visibility="collapse" or "filter") were still drawn in the generated schedule SVG, because Scheduler.schedule_ods built column widths/styles from each <table:table-column> without reading its visibility attribute. Record the indices of hidden columns while collecting them, and in the cell-drawing loop compute each cell's visible span excluding hidden columns: a fully hidden cell is skipped (no rect, no text, no width), and a partially spanning cell sums only its visible columns' widths. Verified live in headless Blender: a 3-column sheet with the middle column set to visibility="collapse" rendered the hidden column before the fix and omits it after (visible columns intact, layout collapsed); an all-visible sheet is byte-unchanged (the guard is a no-op when nothing is hidden). Generated with the assistance of an AI coding tool. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>