From 720fd2cd40e58b8df9063fb299f11050bdefd0f4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 31 Mar 2019 20:04:02 +0200 Subject: [PATCH] textview: Fix comparison thinko Apparently, we have no test that checks for actually drawing text, so the thinko that caused all text to disappear in 4b07d2815375856823532b2238d87455c3be2f7c went unnoticed. --- gtk/gtktextlayout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;