diff --git a/gnucash/register/register-gnome/gnucash-sheet.c b/gnucash/register/register-gnome/gnucash-sheet.c index 683455b6c0..7de2f0e103 100644 --- a/gnucash/register/register-gnome/gnucash-sheet.c +++ b/gnucash/register/register-gnome/gnucash-sheet.c @@ -2676,7 +2676,6 @@ gnucash_sheet_tooltip (GtkWidget *widget, gint x, gint y, gpointer user_data) { GnucashSheet *sheet = GNUCASH_SHEET (widget); - GnucashCursor *cursor = sheet->cursor; Table *table = sheet->table; VirtualLocation virt_loc; gchar *tooltip_text; @@ -2716,7 +2715,7 @@ gnucash_sheet_tooltip (GtkWidget *widget, gint x, gint y, by = block->origin_y; // get the cell location and dimensions - gnucash_sheet_style_get_cell_pixel_rel_coords (cursor->style, + gnucash_sheet_style_get_cell_pixel_rel_coords (block->style, virt_loc.phys_row_offset, virt_loc.phys_col_offset, &cx, &cy, &cw, &ch);