Commit 8dd68629 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Fix regression

parent 982b2251
......@@ -173,7 +173,7 @@ void TracksRuler::mousePressEvent( QMouseEvent* event )
if ( event->buttons() == Qt::LeftButton &&
event->modifiers() == Qt::NoModifier )
{
emit frameChanged( (qreal)( event->x() + offset() ) / m_factor, MainWorkflow::RulerCursor );
emit frameChanged( qMax( (qreal)0, (qreal)( event->x() + offset() ) / m_factor ), MainWorkflow::RulerCursor );
}
}
......@@ -182,7 +182,7 @@ void TracksRuler::mouseMoveEvent( QMouseEvent* event )
if ( event->buttons() == Qt::LeftButton &&
event->modifiers() == Qt::NoModifier )
{
emit frameChanged( (qreal)( event->x() + offset() ) / m_factor, MainWorkflow::RulerCursor );
emit frameChanged( qMax( (qreal)0, (qreal)( event->x() + offset() ) / m_factor ), MainWorkflow::RulerCursor );
}
}
......
Markdown is supported
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