Summary: | currentPage not updated while in Presentation mode | ||
---|---|---|---|
Product: | [Unmaintained] kpdf | Reporter: | Marco Cesati <marco.cesati> |
Component: | general | Assignee: | Albert Astals Cid <aacid> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.5.4 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Marco Cesati
2006-09-04 16:14:34 UTC
bug SVN commit 582529 by aacid: Fix page number not beign correct when using dcop and changing pages through the presentation widget BUGS: 133549 M +4 -4 presentationwidget.cpp --- branches/KDE/3.5/kdegraphics/kpdf/ui/presentationwidget.cpp #582528:582529 @@ -85,10 +85,6 @@ // remove this widget from document observer m_document->removeObserver( this ); - // set a new viewport in document if page number differs - if ( m_frameIndex != -1 && m_frameIndex != m_document->viewport().pageNumber ) - m_document->setViewportPage( m_frameIndex/*, PRESENTATION_ID*/ ); - // delete frames QValueVector< PresentationFrame * >::iterator fIt = m_frames.begin(), fEnd = m_frames.end(); for ( ; fIt != fEnd; ++fIt ) @@ -456,6 +452,10 @@ // make the background pixmap generatePage(); } + + // set a new viewport in document if page number differs + if ( m_frameIndex != -1 && m_frameIndex != m_document->viewport().pageNumber ) + m_document->setViewportPage( m_frameIndex, PRESENTATION_ID ); } void PresentationWidget::generatePage() |