Browse Source

possible fix for TT crash 27637

Redmond Urbino 19 years ago
parent
commit
4888072b58
1 changed files with 6 additions and 0 deletions
  1. 6 0
      direct/src/gui/DirectScrolledList.py

+ 6 - 0
direct/src/gui/DirectScrolledList.py

@@ -186,6 +186,12 @@ class DirectScrolledList(DirectFrame):
         """ scrolls list so selected index is at top, or centered in box"""
         assert self.notify.debugStateCall(self)
         # print "scrollTo[", index,"] called, len(self[items])=", len(self["items"])," self[numItemsVisible]=", self["numItemsVisible"]
+        try:
+            self["numItemsVisible"]
+        except:
+            # RAU hack to kill 27637
+            self.notify.info('crash 27637 fixed!')
+            return
 
         numItemsVisible=self["numItemsVisible"]
         numItemsTotal = len(self["items"])