summaryrefslogtreecommitdiff
path: root/src/ThumbnailCache.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThumbnailCache.vala')
-rw-r--r--src/ThumbnailCache.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ThumbnailCache.vala b/src/ThumbnailCache.vala
index f803089..a0b27fd 100644
--- a/src/ThumbnailCache.vala
+++ b/src/ThumbnailCache.vala
@@ -149,7 +149,7 @@ public class ThumbnailCache : Object {
private void generate_thumbnail() throws Error {
Photo? photo = source as Photo;
if (photo != null) {
- unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.width, true));
+ unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.major_axis(), true));
} else {
Video? video = source as Video;
if (video != null)