Commit 3ff4f881 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Ensure monitor zone out cannot go beyond clip out

parent da8d2d8b
......@@ -795,7 +795,7 @@ void Monitor::slotSetZoneStart()
int currentIn = m_glMonitor->getCurrentPos();
int updatedZoneOut = -1;
if (currentIn > oldZone.y()) {
updatedZoneOut = qMin(m_glMonitor->duration(), currentIn + (oldZone.y() - oldZone.x()));
updatedZoneOut = qMin(m_glMonitor->duration() - 1, currentIn + (oldZone.y() - oldZone.x()));
}
Fun undo_zone = [this, oldZone, updatedZoneOut]() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment