Commit 3d439fbf authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Test whether we show a real page or the intro, otherwise kpdf crashes

svn path=/trunk/kdegraphics/kpdf/; revision=375045
parent 1c6feefd
......@@ -39,6 +39,8 @@
// transition effect to the next frame
struct PresentationFrame
{
PresentationFrame() : page( 0 ) {}
const KPDFPage * page;
QRect geometry;
};
......@@ -282,7 +284,8 @@ void PresentationWidget::generatePage()
#endif
// start transition or immediately update viewport
initTransition( m_frames[ m_frameIndex ]->page->getTransition() );
if ( m_frameIndex >= 0 && m_frames[ m_frameIndex ]->page )
initTransition( m_frames[ m_frameIndex ]->page->getTransition() );
}
void PresentationWidget::generateIntroPage( QPainter & p )
......
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