[orca] Handle case of newline characters being zero width
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle case of newline characters being zero width
- Date: Tue, 9 Jul 2019 14:14:41 +0000 (UTC)
commit 169cff6b419f1c42807d2dcaa328774af277b1c0
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jul 9 10:13:44 2019 -0400
Handle case of newline characters being zero width
src/orca/mouse_review.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index e90397d5c..5bfb914ba 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -239,7 +239,7 @@ class _ItemContext:
"""Returns the bounding box associated with this context."""
x, y, width, height = self._string.getBoundingBox()
- if not (width and height):
+ if not (width or height):
return self._boundingBox
return x, y, width, height
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]