Skip to content

Commit

Permalink
Chromium: Fix bug with flat-review clicking
Browse files Browse the repository at this point in the history
Be sure we have valid character extents before clicking on a character.
  • Loading branch information
joanmarie committed Aug 22, 2019
1 parent 2f918f1 commit 2e8e69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orca/flat_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def setCurrent(self, lineIndex, zoneIndex, wordIndex, charIndex):

def _getClickPoint(self):
string, x, y, width, height = self.getCurrent(Context.CHAR)
if x < 0 and y < 0:
if (x < 0 and y < 0) or (width <= 0 and height <=0):
return -1, -1

# Click left of center to position the caret there.
Expand Down

0 comments on commit 2e8e69a

Please sign in to comment.