diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 9d94282f3e..106191e088 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -1376,7 +1376,7 @@ find_line_by_y (GtkTextBTree *tree, BTreeView *view, if (ld) { - if (y < (current_y + (ld ? ld->height : 0))) + if (y < (current_y + ld->height)) return line; current_y += ld->height;