mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
When drawing the cursor, remove the requirement to test for first row
This commit is contained in:
parent
8ebdc7b1d2
commit
efe2aef6f4
@ -697,23 +697,18 @@ gnucash_sheet_draw_cursor (GnucashCursor *cursor, cairo_t *cr)
|
||||
|
||||
fg_color = &gn_black;
|
||||
|
||||
/* draw the rectangle around the entire active virtual row - transaction rows only - double line */
|
||||
cairo_set_source_rgb (cr, fg_color->red, fg_color->green, fg_color->blue);
|
||||
/* draw the rectangle around the entire active virtual row - transaction rows only - double line */
|
||||
|
||||
if (cursor->y == 0)
|
||||
cairo_rectangle (cr, cursor->x - x + 0.5, cursor->y - y + 0.5, cursor->w - 1.0, cursor->h - 3.0);
|
||||
if (cursor->x == 0)
|
||||
cairo_rectangle (cr, cursor->x - x + 0.5, cursor->y - y - 0.5, cursor->w - 1.0, cursor->h - 2.0);
|
||||
else
|
||||
{
|
||||
if (cursor->x == 0)
|
||||
cairo_rectangle (cr, cursor->x - x + 0.5, cursor->y - y - 0.5, cursor->w - 1.0, cursor->h - 2.0);
|
||||
else
|
||||
cairo_rectangle (cr, cursor->x - x - 0.5, cursor->y - y - 0.5, cursor->w, cursor->h - 2.0);
|
||||
}
|
||||
cairo_rectangle (cr, cursor->x - x - 0.5, cursor->y - y - 0.5, cursor->w, cursor->h - 2.0);
|
||||
|
||||
cairo_set_line_width (cr, 1.0);
|
||||
cairo_stroke (cr);
|
||||
|
||||
cairo_set_source_rgb (cr, fg_color->red, fg_color->green, fg_color->blue);
|
||||
/* draw rectangle around the active cell */
|
||||
cairo_set_source_rgb (cr, fg_color->red, fg_color->green, fg_color->blue);
|
||||
if (cc->x != 0)
|
||||
cairo_rectangle (cr, cc->x - x - 0.5, cursor->y + cc->y - y - 0.5, cc->w, cc->h);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user