Skip to content

Commit

Permalink
Use dt_is_valid_imgid(id).
Browse files Browse the repository at this point in the history
  • Loading branch information
TurboGit committed Oct 1, 2024
1 parent 9b0b246 commit 5fdc17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ static gboolean _event_button_press(GtkWidget *widget,
}

if(table->mode != DT_THUMBTABLE_MODE_ZOOM
&& id < 1
&& !dt_is_valid_imgid(id)
&& event->button == 1
&& event->type == GDK_BUTTON_PRESS)
{
Expand Down

0 comments on commit 5fdc17a

Please sign in to comment.