Bug 83590 - kpdf crashes when displaying the following file where xdf shows correctle it
Summary: kpdf crashes when displaying the following file where xdf shows correctle it
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Christophe Devriese
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 15:33 UTC by Toralf Förster
Modified: 2004-08-26 00:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
the pdf fle where kpdf crashes (321 bytes, application/octet-stream)
2004-06-18 15:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2004-06-18 15:33:58 UTC
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
<< /Type /Pages /Kids [
] /Count 0
>>
endobj
1 0 obj
<</Type /Catalog /Pages 3 0 R
>>
endobj
2 0 obj
<</Producer(ESP Ghostscript 7.07)>>endobj
xref
0 4
0000000000 65535 f
0000000068 00000 n
0000000116 00000 n
0000000015 00000 n
trailer
<< /Size 4 /Root 1 0 R /Info 2 0 R
>>
startxref
166
%%EOF
Comment 1 Toralf Förster 2004-06-18 15:35:12 UTC
Created attachment 6402 [details]
the pdf fle where kpdf crashes
Comment 2 Albert Astals Cid 2004-08-25 22:44:05 UTC
Shows correct = shows nothing?

I don't want to sound harsh, just want to know if my xpdf is not working
Comment 3 Albert Astals Cid 2004-08-26 00:05:31 UTC
CVS commit by aacid: 

Don'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->getNumPages() ) );
 
+  if (m_doc->getNumPages() > 0)
+  {
   // TODO use a qvaluelist<int> to pass aspect ratio?
   pdfpartview->setPages(m_doc->getNumPages(), m_doc->getPageHeight(1)/m_doc->getPageWidth(1));
@@ -369,4 +371,5 @@ Part::openFile()
   m_nextThumbnail=1;
   QTimer::singleShot(10, this, SLOT(nextThumbnail()));
+  }
 
   return true;