Work around a weird crash

This commit is contained in:
rdb
2009-05-28 08:27:34 +00:00
parent 8d234769ab
commit 1fe0e144c9
+4 -1
View File
@@ -200,7 +200,10 @@ class DirectDialog(DirectFrame):
extraArgs = [value])
# Position buttons and text
pad = self['pad']
image = self.component('image0')
if self.hascomponent('image0'):
image = self.component('image0')
else:
image = None
# Get size of text/geom without image (for state 0)
if image:
image.reparentTo(hidden)