Change the layout to show left border of first cell

This commit is contained in:
Robert Fewell 2017-08-01 08:27:45 +01:00
parent 0456b8ae84
commit 25cf1d91c0
2 changed files with 2 additions and 18 deletions

View File

@ -742,25 +742,12 @@ gnc_split_register_get_border (VirtualLocation virt_loc,
cursor_class =
gnc_split_register_cursor_name_to_class (vcell->cellblock->cursor_name);
if (cursor_class == CURSOR_CLASS_TRANS &&
virt_loc.phys_col_offset == vcell->cellblock->start_col)
borders->left = CELL_BORDER_LINE_NONE;
if (cursor_class == CURSOR_CLASS_TRANS &&
virt_loc.phys_col_offset == vcell->cellblock->stop_col)
borders->right = CELL_BORDER_LINE_NONE;
if (cursor_class == CURSOR_CLASS_SPLIT)
{
borders->top = CELL_BORDER_LINE_LIGHT;
borders->bottom = CELL_BORDER_LINE_LIGHT;
borders->left = MIN (borders->left, CELL_BORDER_LINE_LIGHT);
borders->right = MIN (borders->right, CELL_BORDER_LINE_LIGHT);
if (virt_loc.phys_col_offset == vcell->cellblock->start_col)
borders->left = CELL_BORDER_LINE_LIGHT;
if (virt_loc.phys_col_offset == vcell->cellblock->stop_col)
borders->right = CELL_BORDER_LINE_LIGHT;
borders->left = MIN (borders->left, CELL_BORDER_LINE_NORMAL);
borders->right = MIN (borders->right, CELL_BORDER_LINE_NORMAL);
}
}

View File

@ -592,9 +592,6 @@ gnucash_sheet_get_borders (GnucashSheet *sheet, VirtualLocation virt_loc,
borders->left = line_style;
borders->right = line_style;
if (virt_loc.phys_col_offset == 0)
borders->left = CELL_BORDER_LINE_NORMAL;
style = gnucash_sheet_get_style_from_cursor (sheet, CURSOR_HEADER);
if (style)
if (virt_loc.phys_col_offset == (style->ncols - 1))