[gtk+] textbtree: Remove unneeded check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textbtree: Remove unneeded check
- Date: Wed, 26 Nov 2014 12:55:21 +0000 (UTC)
commit 05893dd5a95a4255488ab5757711eb6fcfc105c0
Author: Sebastien Lafargue <slafargue gnome org>
Date: Wed Nov 26 13:53:30 2014 +0100
textbtree: Remove unneeded check
gtk/gtktextbtree.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 9d94282..106191e 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -1376,7 +1376,7 @@ find_line_by_y (GtkTextBTree *tree, BTreeView *view,
if (ld)
{
- if (y < (current_y + (ld ? ld->height : 0)))
+ if (y < (current_y + ld->height))
return line;
current_y += ld->height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]