mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
possible fix for TT crash 27637
This commit is contained in:
parent
91f6de31d2
commit
4888072b58
@ -186,6 +186,12 @@ class DirectScrolledList(DirectFrame):
|
|||||||
""" scrolls list so selected index is at top, or centered in box"""
|
""" scrolls list so selected index is at top, or centered in box"""
|
||||||
assert self.notify.debugStateCall(self)
|
assert self.notify.debugStateCall(self)
|
||||||
# print "scrollTo[", index,"] called, len(self[items])=", len(self["items"])," self[numItemsVisible]=", self["numItemsVisible"]
|
# 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"]
|
numItemsVisible=self["numItemsVisible"]
|
||||||
numItemsTotal = len(self["items"])
|
numItemsTotal = len(self["items"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user