+-----+-----+-----+-----+-----+-----+-----+-----+-----+
*/
enum pivot_border style
- = (y1 == v_size - 1 ? cat_col_vert : dim_col_vert);
+ = (y1 == area[v][0] + v_size - 1 ? cat_col_vert : dim_col_vert);
if (!vrules[x2])
{
draw_line (t, style, v, x2 + h_ofs, y1, v_max);
t->n_borders = PIVOT_N_BORDERS;
t->borders = pool_nmalloc (t->container, PIVOT_N_BORDERS, sizeof *t->borders);
for (size_t i = 0; i < PIVOT_N_BORDERS; i++)
- {
- const struct table_border_style *src = &pt->look->borders[i];
- struct table_border_style *dst = &t->borders[i];
- *dst = (!printing && pt->show_grid_lines && src->stroke == TABLE_STROKE_NONE
- ? (struct table_border_style) { .stroke = TABLE_STROKE_DASHED,
- .color = CELL_COLOR_BLACK }
- : *src);
- }
+ t->borders[i] = resolve_border_style (pt->look, i,
+ printing && pt->show_grid_lines);
int body[TABLE_N_AXES][2] = {
[H] = { 0, n[H] - 1 },