mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
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:
parent
8bae5348f9
commit
720fd2cd40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user