diff options
Diffstat (limited to 'test/pdf.zig')
| -rw-r--r-- | test/pdf.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pdf.zig b/test/pdf.zig index 730bf2ce..bf0bfae7 100644 --- a/test/pdf.zig +++ b/test/pdf.zig @@ -1498,8 +1498,8 @@ test "PDF pane geometry change preserves its page-relative position" { // A divider/split changes rects through computeGeom without emitting a // shell resize. panes.Pdf.ensurePaneLayout anchors against the old layout // before rebuilding it for this wider pane. - const sibling_weight = p.col_weight[1]; - p.col_weight[0] = sibling_weight * 6; + const sibling_weight = p.cols[1].weight; + p.cols[0].weight = sibling_weight * 6; layout.compute(p); try std.testing.expect(panes.Pdf.paneViewport(p, pane).?.pixel_w != old_width); try std.testing.expect(pv.layout_valid); @@ -1514,7 +1514,7 @@ test "PDF pane geometry change preserves its page-relative position" { // An explicit pending reveal wins over an implicit layout anchor. pv.page = 2; pv.scroll_to_page_pending = true; - p.col_weight[0] = sibling_weight * 2; + p.cols[0].weight = sibling_weight * 2; layout.compute(p); _ = frame.reset(.retain_capacity); _ = try p.render(frame.allocator()); |
