]> git.sesse.net Git - vlc/commitdiff
skins2: playlist (missing parentheses)
authorErwan Tulou <erwan10@videolan.org>
Thu, 5 Aug 2010 14:05:58 +0000 (16:05 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 5 Aug 2010 14:32:48 +0000 (16:32 +0200)
modules/gui/skins2/controls/ctrl_tree.cpp

index 34c29302b6867e5ae32cbb0210235acdf1d68acd..c31962c4913b5c8d13cfec5eaa59390aefe7899c 100644 (file)
@@ -627,7 +627,7 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
             }
         }
         iFirst += maxItems();
-        if( iFirst >= m_flat ? m_rTree.countLeafs() : m_rTree.visibleItems() )
+        if( iFirst >= (m_flat ? m_rTree.countLeafs() : m_rTree.visibleItems()) )
             iFirst = m_flat ? m_rTree.countLeafs() : m_rTree.visibleItems();
         float f_new = (float)iFirst / (float)( m_flat ? m_rTree.countLeafs()
                                                       :m_rTree.visibleItems() );