X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/7d09df5d471bb8a7aeadb7535d4852604dbab757..27f5c5b477613baebb83d3af27d57f8ee506a585:/src/minwii/widgets/songfilebrowser.py?ds=inline diff --git a/src/minwii/widgets/songfilebrowser.py b/src/minwii/widgets/songfilebrowser.py index ba8c836..da2bdec 100755 --- a/src/minwii/widgets/songfilebrowser.py +++ b/src/minwii/widgets/songfilebrowser.py @@ -111,10 +111,10 @@ class FileOpenDialog(FileDialog): style = {} if iw > ih : style['width'] = PICTURE_ITEM_SIZE - style['height'] = PICTURE_ITEM_SIZE * float(ih) / iw + style['height'] = int(round(PICTURE_ITEM_SIZE * float(ih) / iw)) else : style['heigth'] = PICTURE_ITEM_SIZE - style['width'] = PICTURE_ITEM_SIZE * float(iw) / ih + style['width'] = int(round(PICTURE_ITEM_SIZE * float(iw) / ih)) img = basic.Image(img, style=style) else :