[orca/orca-xdesktop] Fix for bug #664466 - Orca's flat review cannot access the top line of gnome-terminal console
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-xdesktop] Fix for bug #664466 - Orca's flat review cannot access the top line of gnome-terminal console
- Date: Wed, 23 Nov 2011 10:42:10 +0000 (UTC)
commit 75d059f4ac32c8b55b2c2250bb1c4be0af2f0fc9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 23 11:39:53 2011 +0100
Fix for bug #664466 - Orca's flat review cannot access the top line of gnome-terminal console
src/orca/flat_review.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index 360b481..0486db4 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -429,10 +429,12 @@ class ValueZone(Zone):
orientation = _("vertical")
value = self.accessible.queryValue()
- percentValue = int((value.currentValue
- / (value.maximumValue
- - value.minimumValue))
- * 100.0)
+ try:
+ percentValue = int((value.currentValue /
+ (value.maximumValue - value.minimumValue))
+ * 100.0)
+ except ZeroDivisionError:
+ percentValue = 0
if orientation:
speechValue = orientation + " " + \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]