From ff1d474ca2bfa647fee890f5258301733ffda714 Mon Sep 17 00:00:00 2001 From: Chrys Date: Sat, 27 Apr 2019 16:08:19 +0200 Subject: [PATCH] remove boarder checks --- src/fenrirscreenreader/core/barrierManager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fenrirscreenreader/core/barrierManager.py b/src/fenrirscreenreader/core/barrierManager.py index fa4c2d62..cf2d8df2 100644 --- a/src/fenrirscreenreader/core/barrierManager.py +++ b/src/fenrirscreenreader/core/barrierManager.py @@ -89,10 +89,10 @@ class barrierManager(): offset = xCursor - 1 start = line[:offset].rfind(b) if start != -1: - if not self.hasBorder(text, xCursor, yCursor, leftBarriers, start): - start = -1 - else: - start += 1 + #if not self.hasBorder(text, xCursor, yCursor, leftBarriers, start): + # start = -1 + #else: + start += 1 break if start == -1: return False, line @@ -101,8 +101,8 @@ class barrierManager(): end = line[start:].find(b) if end != -1: end = start + end - if not self.hasBorder(text, xCursor, yCursor,rightBarriers, end): - end = -1 + #if not self.hasBorder(text, xCursor, yCursor,rightBarriers, end): + # end = -1 break if end == -1: return False, line