Commit bd72af73 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Solved crash when using marker without any clip loaded.

parent 0a5c22db
......@@ -30,7 +30,7 @@
PreviewRuler::PreviewRuler( QWidget* parent ) :
QWidget( parent ),
m_renderer( NULL ),
m_frame( NULL )
m_frame( 0 )
{
setMouseTracking( true );
m_isSliding = false;
......@@ -141,7 +141,6 @@ void PreviewRuler::paintEvent( QPaintEvent * event )
painter.drawLine( QLineF( r.left() + step * spacing, r.height() - MARK_LARGE, r.left() + step * spacing, r.bottom() ) );
}
}
}
// Draw the markers (if any)
painter.setPen( QPen( Qt::green, 2 ) );
......@@ -168,6 +167,8 @@ void PreviewRuler::paintEvent( QPaintEvent * event )
markerPos - 8, 20 );
painter.drawPolyline( marker );
}
}
// Draw the pointer
painter.setRenderHint( QPainter::Antialiasing );
......
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