summaryrefslogtreecommitdiff
path: root/src/ThumbnailCache.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
commit71137cc5832110d91599d68790402cf196762ed3 (patch)
treee7985bbfb6ca50ea738b38a9f852ee51431d48a7 /src/ThumbnailCache.vala
parent8ae550d463720d5d1c0e253af29843ff15de1a54 (diff)
parent1e92964463e564bb3359a7110342182fcfdc67f2 (diff)
Merge branch 'release/debian/0.30.1-1'debian/0.30.1-1
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)