Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-05-31 20:10:19 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-05-31 20:10:19 (GMT)
commitc5cb6d2e411d7114b811178f9b6c804421d2b12c (patch)
treec56ac3c3af52f5475aeb112aaee42190399b2ac9
parentbdb42142c82518a9383aadaaa13c1f2d60bc1204 (diff)
Fixed bug: Scalling correctly the first frame at first time.
-rw-r--r--TODO1
-rw-r--r--animation.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/TODO b/TODO
index c2ef312..1989c99 100644
--- a/TODO
+++ b/TODO
@@ -5,4 +5,3 @@ Fixes:
- Enable drag and drop between frames.
Bugs:
- Doesn't select another frame when the last frame is removed.
- - Bad scaled image in the first frame only in first time.
diff --git a/animation.py b/animation.py
index 527ec97..27c9c3d 100644
--- a/animation.py
+++ b/animation.py
@@ -101,8 +101,9 @@ class Animation(gtk.Image):
self._size[0] * height / width,
gtk.gdk.INTERP_TILES)
else:
- scaled_pixbuf = pixbuf.scale_simple(self._size[1],
- self._size[1] * width / height,
+ scaled_pixbuf = pixbuf.scale_simple(self._size[1] *\
+ width / height,
+ self._size[1],
gtk.gdk.INTERP_TILES)
self.set_from_pixbuf(scaled_pixbuf)