[pitivi] mediafilespreviewer: Uniform pane size behaviour for images and videos



commit c39f73908c54baddd557d897dde0073eb000641f
Author: Suhas Nayak <suhas2go gmail com>
Date:   Fri Jan 27 20:36:28 2017 +0000

    mediafilespreviewer: Uniform pane size behaviour for images and videos
    
    There is no need to choose a maximum between pane size
    and new image size, the pane adjusts to the new size.
    
    This fixes T7681
    
    Differential Revision: https://phabricator.freedesktop.org/D1623

 pitivi/mediafilespreviewer.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/mediafilespreviewer.py b/pitivi/mediafilespreviewer.py
index ab3d982..aa6f5f4 100644
--- a/pitivi/mediafilespreviewer.py
+++ b/pitivi/mediafilespreviewer.py
@@ -417,8 +417,6 @@ class PreviewWidget(Gtk.Grid, Loggable):
             pixbuf = pixbuf.scale_simple(
                 int(w), int(h), GdkPixbuf.InterpType.BILINEAR)
 
-            w = max(w, self.settings.FCpreviewWidth)
-            h = max(h, self.settings.FCpreviewHeight)
             self.preview_image.set_size_request(int(w), int(h))
             self.preview_image.set_from_pixbuf(pixbuf)
             self.preview_image.show()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]