[gtk] textview: Fix comparison thinko
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] textview: Fix comparison thinko
- Date: Sun, 31 Mar 2019 18:23:02 +0000 (UTC)
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]