[gtk] textview: Fix comparison thinko



commit 720fd2cd40e58b8df9063fb299f11050bdefd0f4
Author: Benjamin Otte <otte redhat com>
Date:   Sun Mar 31 20:04:02 2019 +0200

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]