projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remplacement du carillon par le tintinabule.
[minwii.git]
/
src
/
minwii
/
widgets
/
songfilebrowser.py
diff --git
a/src/minwii/widgets/songfilebrowser.py
b/src/minwii/widgets/songfilebrowser.py
index
ba8c836
..
da2bdec
100755
(executable)
--- 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 = {}
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
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 :
img = basic.Image(img, style=style)
else :