[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdenlive/Applications/16.08] src/timeline: Fix timeline preview invalidate when hiding a track
From:       Jean-Baptiste Mardelle <jb () kdenlive ! org>
Date:       2016-08-24 6:02:51
Message-ID: E1bcRH1-0005g2-NZ () code ! kde ! org
[Download RAW message or body]

Git commit 1df50d2be1311e91611a3ffe829d79b08efff700 by Jean-Baptiste Mardelle.
Committed on 24/08/2016 at 05:51.
Pushed by mardelle into branch 'Applications/16.08'.

Fix timeline preview invalidate when hiding a track
CCBUG: 367693

M  +8    -1    src/timeline/timeline.cpp

http://commits.kde.org/kdenlive/1df50d2be1311e91611a3ffe829d79b08efff700

diff --git a/src/timeline/timeline.cpp b/src/timeline/timeline.cpp
index 07ad43b..a076c91 100644
--- a/src/timeline/timeline.cpp
+++ b/src/timeline/timeline.cpp
@@ -794,8 +794,15 @@ void Timeline::doSwitchTrackVideo(int ix, bool hide)
             newstate = 0;
         }
     }
+    if (newstate > 0) {
+        // hide
+        invalidateTrack(ix);
+    }
     tk->setState(newstate);
-    invalidateTrack(ix);
+    if (newstate == 0) {
+        // unhide
+        invalidateTrack(ix);
+    }
     refreshTractor();
     m_doc->renderer()->doRefresh();
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic