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
4b07d28153 went unnoticed.
This commit is contained in:
Benjamin Otte 2019-03-31 20:04:02 +02:00
parent 8bae5348f9
commit 720fd2cd40

View File

@ -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;