[pitivi] medialibrary: Fix check for small_thumb shrinking
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Fix check for small_thumb shrinking
- Date: Sun, 23 Oct 2016 16:12:07 +0000 (UTC)
commit 000aa3a637987c289f5573fff86cb57aaecc2bf5
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Thu Oct 6 16:17:20 2016 +0200
medialibrary: Fix check for small_thumb shrinking
Should have been part of b68ce73bf3718e011c7cb6c084c26ccac2afae7c
Broke during a rebase.
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1372
pitivi/medialibrary.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 8972261..ac9bd79 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -231,7 +231,7 @@ class AssetThumbnail(Loggable):
LARGE_THUMB_WIDTH,
LARGE_THUMB_WIDTH * height / width,
GdkPixbuf.InterpType.BILINEAR)
- if large_thumb.props.width > SMALL_THUMB_WIDTH:
+ if width > SMALL_THUMB_WIDTH:
small_thumb = small_thumb.scale_simple(
SMALL_THUMB_WIDTH,
SMALL_THUMB_WIDTH * height / width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]