diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-08-15 03:44:43 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-08-15 03:44:43 +0000 |
commit | 2e4c404f9637a50c2e0409c7146231813fbd17ea (patch) | |
tree | 86764cf25acca40c5fe20872bdb159ea5a779991 /gui.py | |
parent | d46f11bd1221b072d80e37e3ef043bfb1e8eabb0 (diff) | |
download | anaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.tar.gz anaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.tar.xz anaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.zip |
only get the current height and width if we need it
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1190,10 +1190,9 @@ class InstallControlState: except RuntimeError, msg: log("unable to read %s: %s", file, msg) return None - curheight = pixbuf.get_height() - curwidth = pixbuf.get_width() if (height is not None and width is not None - and height != curheight and width != curwidth): + and height != pixbuf.get_height() + and width != pixbuf.get_width()): sclpix = pixbuf.scale_simple(height, width, gtk.gdk.INTERP_BILINEAR) p = gtk.Image() |