traverso-commit
[Top][All Lists]
Advanced

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

[Traverso-commit] traverso/src/sheetcanvas Cursors.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp
Date: Sat, 21 Feb 2009 17:42:20 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       09/02/21 17:42:20

Modified files:
        src/sheetcanvas: Cursors.cpp 

Log message:
        * fix annoying viewport 'jump' when start/stop'ing during a playhead 
animated move

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/Cursors.cpp?cvsroot=traverso&r1=1.7&r2=1.8

Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- Cursors.cpp 7 Feb 2009 17:41:25 -0000       1.7
+++ Cursors.cpp 21 Feb 2009 17:42:19 -0000      1.8
@@ -109,10 +109,8 @@
 
        if (m_animation.state() == QTimeLine::Running) {
                m_animation.stop();
-               m_animation.setCurrentTime(0);
        }
 
-       update();
 }
 
 void PlayHead::disable_follow()
@@ -184,6 +182,7 @@
                                //during the animation, we stop the play update 
timer
                                // to avoid unnecessary update/paint events
                                play_stop();
+                               m_animation.setCurrentTime(0);
                                m_animation.start();
                        }
                } else {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]