Summary: | Crash on expanding Contents tree in sidebar | ||
---|---|---|---|
Product: | [Applications] kpdf | Reporter: | Peter Brett <peter> |
Component: | general | Assignee: | Albert Astals Cid <aacid> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 0.4.2 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | PDF testcase |
Description
Peter Brett
2005-08-03 17:42:33 UTC
Created attachment 12064 [details]
PDF testcase
The contents of the document can be browsed successfully in Gnome PDF Viewer.
SVN commit 442692 by aacid: Forgot to backport this crash fix from 3.5 branch, sorry about it, will be there on KDE 3.4.3 and KDE 3.5.0 BUGS: 110087 BUGS: 110111 M +6 -1 toc.cpp --- branches/KDE/3.4/kdegraphics/kpdf/ui/toc.cpp #442691:442692 @@ -121,7 +121,12 @@ void TOC::slotExecuted( QListViewItem *i ) { - const QDomElement & e = static_cast< TOCItem* >( i )->element(); + TOCItem* tocItem = dynamic_cast<TOCItem*>( i ); + // that filters clicks on [+] that for a strange reason don't seem to be TOCItem* + if (tocItem == NULL) + return; + const QDomElement & e = tocItem->element(); + QString externalFileName = e.attribute( "ExternalFileName" ); if ( !externalFileName.isEmpty() ) { |