diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-03-03 19:51:00 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-03-03 19:51:00 (GMT) |
commit | 9f648c1340b8c1cc9b4f8e414427e2d08784cc57 (patch) | |
tree | 24b24e6a9ef2ab0a7e63a7cbdfd53e000dbc1aee /sprites.py | |
parent | 94d2541eba3258ff1a65690a86dfbca85d0aeea8 (diff) |
fixed collapsible block regression
Diffstat (limited to 'sprites.py')
-rw-r--r-- | sprites.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -164,11 +164,11 @@ class Sprite: self.images[i] = image self._dx[i] = dx self._dy[i] = dy - if isinstance(self.images[i], gtk.gdk.Pixbuf): - _w = self.images[i].get_width() - _h = self.images[i].get_height() + if isinstance(image, gtk.gdk.Pixbuf): + _w = image.get_width() + _h = image.get_height() else: - _w, _h = self.images[i].get_size() + _w, _h = image.get_size() if i == 0: # Always reset width and height when base image changes. self._width = _w + dx self._height = _h + dy |