]> git.sesse.net Git - kdenlive/commitdiff
Fix painting of timeline zone when changing it from project monitor
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 12 Dec 2009 21:59:33 +0000 (21:59 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 12 Dec 2009 21:59:33 +0000 (21:59 +0000)
svn path=/trunk/kdenlive/; revision=4180

src/customruler.cpp

index 71d31310191f9e31013f25567ee0e1b0a1800e00..ddbac7af2737da4703477fd5ab2fc7d19e219f05 100644 (file)
@@ -105,11 +105,9 @@ void CustomRuler::slotDeleteGuide()
 
 void CustomRuler::setZone(QPoint p)
 {
-    int min = qMin(m_zoneStart, p.x());
-    int max = qMax(m_zoneEnd, p.y());
     m_zoneStart = p.x();
     m_zoneEnd = p.y();
-    update(min * m_factor - 2, 0, (max - min) * m_factor + 4, height());
+    update();
 }
 
 void CustomRuler::mouseReleaseEvent(QMouseEvent * /*event*/)