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( 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() ) {