<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>133549</bug_id>
          
          <creation_ts>2006-09-04 16:14:34 +0000</creation_ts>
          <short_desc>currentPage not updated while in Presentation mode</short_desc>
          <delta_ts>2006-09-09 19:14:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>0.5.4</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Marco Cesati">marco.cesati</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>466598</commentid>
    <comment_count>0</comment_count>
    <who name="Marco Cesati">marco.cesati</who>
    <bug_when>2006-09-04 16:14:34 +0000</bug_when>
    <thetext>Version:           0.5.4 (using KDE 3.5.4, compiled sources)
Compiler:          gcc version 3.3.6
OS:                Linux (i686) release 2.6.17.8

While in Presentation mode, currentPage is not updated. This means that a DCOP-based script cannot fetch the current page being displayed during a presentation.

(I&apos;m not sure whether this report should be tagged bug or wish.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466612</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2006-09-04 17:22:52 +0000</bug_when>
    <thetext>bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>468347</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2006-09-09 19:14:44 +0000</bug_when>
    <thetext>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-&gt;removeObserver( this );
 
-    // set a new viewport in document if page number differs
-    if ( m_frameIndex != -1 &amp;&amp; m_frameIndex != m_document-&gt;viewport().pageNumber )
-        m_document-&gt;setViewportPage( m_frameIndex/*, PRESENTATION_ID*/ );
-
     // delete frames
     QValueVector&lt; PresentationFrame * &gt;::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 &amp;&amp; m_frameIndex != m_document-&gt;viewport().pageNumber )
+        m_document-&gt;setViewportPage( m_frameIndex, PRESENTATION_ID );
 }
 
 void PresentationWidget::generatePage()
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>