summaryrefslogtreecommitdiff
path: root/src/ThumbnailCache.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
commit0ac947a9070322180e94d1b71e30836cce4d74bc (patch)
tree4a6f3923c250377536a5004ed203768111a1d27f /src/ThumbnailCache.vala
parenteca5837e235a356c8db9416bbbc13577db3e6f76 (diff)
parent01b2b5ec9177046f64c6d0a6e73a6ac8a42089a1 (diff)
Merge branch 'feature/upstream' into develop
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)