[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8055 - trunk/gnue-forms/src/GFObjects
From: |
johannes |
Subject: |
[gnue] r8055 - trunk/gnue-forms/src/GFObjects |
Date: |
Thu, 13 Oct 2005 09:11:50 -0500 (CDT) |
Author: johannes
Date: 2005-10-13 09:11:50 -0500 (Thu, 13 Oct 2005)
New Revision: 8055
Modified:
trunk/gnue-forms/src/GFObjects/GFContainer.py
Log:
Don't throw an exception if no tabstops are available
Modified: trunk/gnue-forms/src/GFObjects/GFContainer.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFContainer.py 2005-10-13 11:06:49 UTC
(rev 8054)
+++ trunk/gnue-forms/src/GFObjects/GFContainer.py 2005-10-13 14:11:50 UTC
(rev 8055)
@@ -77,7 +77,7 @@
hasFocusOrder.sort()
# Create a None filled list that will contain all the tab stops
- maxFocusIndex = hasFocusOrder[-1][0]
+ maxFocusIndex = hasFocusOrder and hasFocusOrder[-1][0] or 0
totalLength = len(hasFocusOrder) + len(missingFocusOrder)
workingList = [None] * max(maxFocusIndex + 1, totalLength)
@@ -98,4 +98,4 @@
if tabStop is not None:
returnValue.extend(tabStop)
- return returnValue
\ No newline at end of file
+ return returnValue
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8055 - trunk/gnue-forms/src/GFObjects,
johannes <=