[orca] Ensure braille viewport[0] is an int; not a float
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure braille viewport[0] is an int; not a float
- Date: Tue, 16 Aug 2016 18:35:59 +0000 (UTC)
commit d27fde579be0ae94dae13656e315d826f430271b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 16 14:34:27 2016 -0400
Ensure braille viewport[0] is an int; not a float
src/orca/braille.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index f14f1d0..715b4f2 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -1149,6 +1149,7 @@ def _realignViewport(string, focusOffset, cursorOffset):
#
viewport[0] = min(viewport[0],
max(leftMostEdge, len(string) - _displaySize[0]))
+ viewport[0] = int(viewport[0])
def refresh(panToCursor=True,
targetCursorCell=0,
@@ -1279,7 +1280,7 @@ def refresh(panToCursor=True,
#
_realignViewport(string, focusOffset, cursorOffset)
- startPos = viewport[0]
+ startPos = int(viewport[0])
endPos = startPos + _displaySize[0]
# Now normalize the cursor position to BrlTTY, which uses 1 as
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]