diff options
Diffstat (limited to 'src/plugins/thumbnailqt_extractor.cc')
-rw-r--r-- | src/plugins/thumbnailqt_extractor.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/thumbnailqt_extractor.cc b/src/plugins/thumbnailqt_extractor.cc index 0964197..6a66981 100644 --- a/src/plugins/thumbnailqt_extractor.cc +++ b/src/plugins/thumbnailqt_extractor.cc | |||
@@ -133,6 +133,11 @@ EXTRACTOR_thumbnailqt_extract (const char *data, | |||
133 | * Qt's scaled() produces poor quality if the image is resized to less than | 133 | * Qt's scaled() produces poor quality if the image is resized to less than |
134 | * half the size. Therefore, we resize the image in multiple steps. | 134 | * half the size. Therefore, we resize the image in multiple steps. |
135 | * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */ | 135 | * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */ |
136 | while ( (width > 32*THUMBSIZE) || (height > 32*THUMBSIZE) ) | ||
137 | { | ||
138 | width /= 2; | ||
139 | height /= 2; | ||
140 | } | ||
136 | while ( (width > THUMBSIZE) || (height > THUMBSIZE) ) | 141 | while ( (width > THUMBSIZE) || (height > THUMBSIZE) ) |
137 | { | 142 | { |
138 | width /= 2; | 143 | width /= 2; |