From eff044092c104f321de3cb754f8fc5f4e7106cbc Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 25 Feb 2010 02:45:48 +0000 Subject: fixed restore of null block corner case --- diff --git a/tawindow.py b/tawindow.py index a766f4c..46644dc 100644 --- a/tawindow.py +++ b/tawindow.py @@ -1115,7 +1115,10 @@ class TurtleArtWindow(): for b in blocks: if self._collapsed(b): self._collapse_stack(self._find_sandwich_top(b)) - return blocks[0] + if len(blocks) > 0: + return blocks[0] + else: + return None """ Adjust the dock x,y positions -- cgit v0.9.1