<?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>83590</bug_id>
          
          <creation_ts>2004-06-18 15:33:58 +0000</creation_ts>
          <short_desc>kpdf crashes when displaying the following file where xdf shows correctle it</short_desc>
          <delta_ts>2004-08-26 00:05:32 +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>unspecified</version>
          <rep_platform>Gentoo Packages</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>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Toralf Förster">toralf.foerster</reporter>
          <assigned_to name="Christophe Devriese">oelewapperke</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>242333</commentid>
    <comment_count>0</comment_count>
    <who name="Toralf Förster">toralf.foerster</who>
    <bug_when>2004-06-18 15:33:58 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.2)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) -O3
OS:                Linux

Here is the contents of the file :
%PDF-1.3
%Çì~O¢
3 0 obj
&lt;&lt; /Type /Pages /Kids [
] /Count 0
&gt;&gt;
endobj
1 0 obj
&lt;&lt;/Type /Catalog /Pages 3 0 R
&gt;&gt;
endobj
2 0 obj
&lt;&lt;/Producer(ESP Ghostscript 7.07)&gt;&gt;endobj
xref
0 4
0000000000 65535 f
0000000068 00000 n
0000000116 00000 n
0000000015 00000 n
trailer
&lt;&lt; /Size 4 /Root 1 0 R /Info 2 0 R
&gt;&gt;
startxref
166
%%EOF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242334</commentid>
    <comment_count>1</comment_count>
      <attachid>6402</attachid>
    <who name="Toralf Förster">toralf.foerster</who>
    <bug_when>2004-06-18 15:35:12 +0000</bug_when>
    <thetext>Created attachment 6402
the pdf fle where kpdf crashes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262483</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2004-08-25 22:44:05 +0000</bug_when>
    <thetext>Shows correct = shows nothing?

I don&apos;t want to sound harsh, just want to know if my xpdf is not working</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262512</commentid>
    <comment_count>3</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2004-08-26 00:05:31 +0000</bug_when>
    <thetext>CVS commit by aacid: 

Don&apos;t die on empty pdfs like the one on bug 83590
CCMAIL:83590-done@bugs.kde.org


  M +13 -10    kpdf_part.cpp   1.54


--- kdegraphics/kpdf/kpdf/kpdf_part.cpp  #1.53:1.54
@@ -360,4 +360,6 @@ Part::openFile()
   // emit setStatusBarText( QString::number( m_doc-&gt;getNumPages() ) );
 
+  if (m_doc-&gt;getNumPages() &gt; 0)
+  {
   // TODO use a qvaluelist&lt;int&gt; to pass aspect ratio?
   pdfpartview-&gt;setPages(m_doc-&gt;getNumPages(), m_doc-&gt;getPageHeight(1)/m_doc-&gt;getPageWidth(1));
@@ -369,4 +371,5 @@ Part::openFile()
   m_nextThumbnail=1;
   QTimer::singleShot(10, this, SLOT(nextThumbnail()));
+  }
 
   return true;


</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6402</attachid>
            <date>2004-06-18 15:35:12 +0000</date>
            <delta_ts>2004-06-18 15:35:12 +0000</delta_ts>
            <desc>the pdf fle where kpdf crashes</desc>
            <filename>manual.pdf</filename>
            <type>application/octet-stream</type>
            <size>321</size>
            <attacher name="Toralf Förster">toralf.foerster</attacher>
            
              <data encoding="base64">JVBERi0xLjMKJcfsj6IKMyAwIG9iago8PCAvVHlwZSAvUGFnZXMgL0tpZHMgWwpdIC9Db3VudCAw
Cj4+CmVuZG9iagoxIDAgb2JqCjw8L1R5cGUgL0NhdGFsb2cgL1BhZ2VzIDMgMCBSCj4+CmVuZG9i
agoyIDAgb2JqCjw8L1Byb2R1Y2VyKEVTUCBHaG9zdHNjcmlwdCA3LjA3KT4+ZW5kb2JqCnhyZWYK
MCA0CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDA2OCAwMDAwMCBuIAowMDAwMDAwMTE2IDAw
MDAwIG4gCjAwMDAwMDAwMTUgMDAwMDAgbiAKdHJhaWxlcgo8PCAvU2l6ZSA0IC9Sb290IDEgMCBS
IC9JbmZvIDIgMCBSCj4+CnN0YXJ0eHJlZgoxNjYKJSVFT0YK
</data>

          </attachment>
      

    </bug>

</bugzilla>