[orca] Handle partially-implemented value interfaces with range of 0 to 1



commit b46671149f1cb1ad70a86ce183ef159ca7964667
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Aug 23 16:33:10 2013 -0400

    Handle partially-implemented value interfaces with range of 0 to 1

 src/orca/script_utilities.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index cd8b770..4814302 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2825,6 +2825,8 @@ class Utilities:
                 debug.println(debug.LEVEL_FINEST, "VALUE WARNING: " \
                     "Error calculating decimal places for %s" % obj)
                 return ""
+        elif abs(currentValue) < 1:
+            decimalPlaces = 1
         else:
             decimalPlaces = 0
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]