summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-31 20:04:02 +0200
committerBenjamin Otte <otte@redhat.com>2019-03-31 20:22:05 +0200
commit720fd2cd40e58b8df9063fb299f11050bdefd0f4 (patch)
tree0cc8c92922c0f8ff9ee25b0ca2dafd90034fde3a
parent8bae5348f97dac00790ed2693c8f96672f429af6 (diff)
downloadgtk+-720fd2cd40e58b8df9063fb299f11050bdefd0f4.tar.gz
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.
-rw-r--r--gtk/gtktextlayout.c2
1 files changed, 1 insertions, 1 deletions
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;