From 98a5fee1f610b3249e1de4fced8ecf7111dcebdb Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 26 May 2009 22:45:13 +0200 Subject: [PATCH] Attempt to fix horizontal directional navigation when handle_size is 0. Closes LP #325028 --- terminatorlib/terminator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 8656e5d9..1177c6fd 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -1092,7 +1092,7 @@ class Terminator: verticalBar = self.term_list[0].get_parent().style_get_property('handle-size') # Horizontal distance between two terminals distance = current_geo['offset_x'] - (possible_geo['offset_x'] + possible_geo['span_x']) - if new_edge < edge: + if new_edge <= edge: #print "new_edge(%d) < edge(%d)" % (new_edge, edge) if best_geo is None: #print "first thing left" @@ -1134,7 +1134,7 @@ class Terminator: verticalBar = self.term_list[0].get_parent().style_get_property('handle-size') # Horizontal distance between two terminals distance = possible_geo['offset_x'] - (current_geo['offset_x'] + current_geo['span_x']) - if new_edge > edge: + if new_edge >= edge: #print "new_edge > edge" if best_geo is None: #print "first thing right"