Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-snapshot.sh2
-rw-r--r--sugar/graphics/spreadbox.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/build-snapshot.sh b/build-snapshot.sh
index f019fcf..68c73b3 100755
--- a/build-snapshot.sh
+++ b/build-snapshot.sh
@@ -1,6 +1,6 @@
VERSION=0.63
DATE=`date +%Y%m%d`
-RELEASE=2.77
+RELEASE=2.78
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
rm sugar-$VERSION.tar.bz2
diff --git a/sugar/graphics/spreadbox.py b/sugar/graphics/spreadbox.py
index 2fee1f5..1002a44 100644
--- a/sugar/graphics/spreadbox.py
+++ b/sugar/graphics/spreadbox.py
@@ -113,8 +113,9 @@ class SpreadBox(hippo.CanvasBox, hippo.CanvasItem):
self._layout_item(item)
def remove_item(self, item):
- info = item.get_data('item-info')
- info.remove_weight(self._grid)
+ if self._grid:
+ info = item.get_data('item-info')
+ info.remove_weight(self._grid)
self.remove(item)