diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 7947eadcf8..2ebddbbda6 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -723,7 +723,7 @@ gtk_text_layout_get_lines (GtkTextLayout *layout, g_return_val_if_fail (GTK_IS_TEXT_LAYOUT (layout), NULL); - if (top_y <= bottom_y) + if (top_y >= bottom_y) return NULL; retval = NULL;