]> git.sesse.net Git - kdenlive/commitdiff
Do not allow render zone to go below 0, might fix:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 29 Oct 2008 21:24:31 +0000 (21:24 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 29 Oct 2008 21:24:31 +0000 (21:24 +0000)
http://www.kdenlive.org:80/mantis/view.php?id=293

svn path=/branches/KDE4/; revision=2597

src/customruler.cpp

index d1c90d9386901fe67074c4ed5cec50bd3df6b798..2e5ac48ee243dc762f3146c4dd1ec9358c7c0416 100644 (file)
@@ -115,6 +115,7 @@ void CustomRuler::mouseMoveEvent(QMouseEvent * event) {
         else if (m_moveCursor == RULER_END) m_zoneEnd = pos;
         else if (m_moveCursor == RULER_MIDDLE) {
             int move = pos - (m_zoneStart + (m_zoneEnd - m_zoneStart) / 2);
+            if (move + m_zoneStart < 0) move = - m_zoneStart;
             m_zoneStart += move;
             m_zoneEnd += move;
         }