Skip to content

Commit

Permalink
Merge branch 'aurelienpierreeng:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mpaglia0 authored Feb 9, 2025
2 parents 6ff66d2 + 12afe31 commit 8fb46fc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,6 @@ static gboolean _thumbtable_update_scrollbars(dt_thumbtable_t *table)
float lbefore = (table->offset - 1) / table->thumbs_per_row;
if((table->offset - 1) % table->thumbs_per_row) lbefore++;

// if scrollbars are used, we can have partial row shown
if(table->thumbs_area.y != 0)
{
lbefore += -table->thumbs_area.y / (float)table->thumb_size;
}

// the number of line after (including the current one)
int lafter = (nbid - table->offset) / table->thumbs_per_row;
if((nbid - table->offset) % table->thumbs_per_row) lafter++;
Expand Down

0 comments on commit 8fb46fc

Please sign in to comment.