Commit 8397b0cd authored by Enrico Ros's avatar Enrico Ros

applying patch_107

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425010
parent 8e9cce23
......@@ -120,7 +120,11 @@ void TOC::addChildren( const QDomNode & parentNode, KListViewItem * parentItem )
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();
if ( e.hasAttribute( "Viewport" ) )
{
// if the node has a viewport, set it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment