[vlc-commits] commit: Qt4: coverflow, fix off-by-one in scrollto (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat Oct 30 21:55:29 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Oct 30 22:53:30 2010 +0300| [02bdc02e7c543c2b8329105067dc9d403278391e] | committer: Ilkka Ollakka 

Qt4: coverflow, fix off-by-one in scrollto

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02bdc02e7c543c2b8329105067dc9d403278391e
---

 modules/gui/qt4/components/playlist/views.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/views.cpp b/modules/gui/qt4/components/playlist/views.cpp
index e7e7189..44af61f 100644
--- a/modules/gui/qt4/components/playlist/views.cpp
+++ b/modules/gui/qt4/components/playlist/views.cpp
@@ -403,7 +403,7 @@ QRect PicFlowView::visualRect(const QModelIndex &index ) const
 
 void PicFlowView::scrollTo(const QModelIndex &index, QAbstractItemView::ScrollHint)
 {
-     picFlow->showSlide( index.row() );
+     picFlow->showSlide( index.row()-1 );
 }
 
 QModelIndex PicFlowView::indexAt(const QPoint &) const



More information about the vlc-commits mailing list