fix crash on setValues exceeding 32 bit range
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Fri, 11 Jul 2008 14:03:09 +0000 (14:03 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Fri, 11 Jul 2008 14:03:09 +0000 (14:03 +0000)
lib/python/Components/VariableValue.py

index 7fde0af..feb4534 100644 (file)
@@ -7,7 +7,10 @@ class VariableValue(object):
        def setValue(self, value):
                self.__value = value
                if self.instance:
-                       self.instance.setValue(self.__value)
+                       try:
+                               self.instance.setValue(self.__value)
+                       except TypeError:
+                               self.instance.setValue(0)
 
        def getValue(self):
                return self.__value