[vlmc-devel] commit: TracksView: When items are overlapping, take the one with the higher Z value. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Thu Sep 9 20:16:35 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Sep  9 10:18:18 2010 +0200| [428f921f0c2b51774dca075d56e3cc8550921069] | committer: Hugo Beauzée-Luyssen 

TracksView: When items are overlapping, take the one with the higher Z value.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=428f921f0c2b51774dca075d56e3cc8550921069
---

 src/Gui/timeline/TracksView.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index e4d368e..5847161 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -943,7 +943,7 @@ TracksView::mousePressEvent( QMouseEvent *event )
     else if ( event->modifiers() == Qt::NoModifier &&
          event->button() == Qt::LeftButton &&
          tool() == TOOL_DEFAULT &&
-         mediaCollisionList.count() == 1 )
+         mediaCollisionList.count() >= 1 )
     {
         AbstractGraphicsItem *item = mediaCollisionList.at( 0 );
 



More information about the Vlmc-devel mailing list