dabo Commit
Revision 6619
Date: 2011-06-11 10:22:21 -0700 (Sat, 11 Jun 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6619

Changed:
U   trunk/ide/ClassDesignerPropSheet.py

Log:
Fixed an edge case where the prop sheet would throw an error if there were no 
property rows loaded in the grid.

Diff:
Modified: trunk/ide/ClassDesignerPropSheet.py
===================================================================
--- trunk/ide/ClassDesignerPropSheet.py 2011-06-11 17:09:58 UTC (rev 6618)
+++ trunk/ide/ClassDesignerPropSheet.py 2011-06-11 17:22:21 UTC (rev 6619)
@@ -703,6 +703,8 @@
 
 
        def getPropDictForRow(self, row):
+               if not self.RowCount:
+                       return None
                prop = self.getValue(row, 0)
                if not prop:
                        return None
@@ -720,7 +722,7 @@
                if not self.Application.Selection:
                        return
                valColumn = self.Columns[1]
-               for row in range(self.RowCount):
+               for row in xrange(self.RowCount):
                        pd = self.getPropDictForRow(row)
                        if pd is None:
                                if row == 0 and self.getValue(row, 0) == "":



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to