mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change the layout to show left border of first cell
This commit is contained in:
parent
0456b8ae84
commit
25cf1d91c0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user