diff -r b0996e4a289e -r 1d8dd9706f46 E4Graphics/E4GraphicsView.py --- a/E4Graphics/E4GraphicsView.py Fri Jan 01 16:11:36 2010 +0000 +++ b/E4Graphics/E4GraphicsView.py Sat Jan 02 15:11:35 2010 +0000 @@ -133,11 +133,11 @@ @param border border width to include in the calculation (integer) @return the minimum rectangle (QRectF) """ - startx = sys.maxint - starty = sys.maxint + startx = sys.maxsize + starty = sys.maxsize endx = 0 endy = 0 - items = self.filteredItems(self.scene().items()) + items = self.filteredItems(list(self.scene().items())) for itm in items: rect = itm.sceneBoundingRect() itmEndX = rect.x() + rect.width() @@ -169,7 +169,7 @@ """ endx = 0 endy = 0 - items = self.filteredItems(self.scene().items()) + items = self.filteredItems(list(self.scene().items())) for itm in items: rect = itm.sceneBoundingRect() itmEndX = rect.x() + rect.width()