diff options
author | Pino Toscano <pino@kde.org> | 2014-04-05 15:46:44 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2014-04-05 15:46:44 +0200 |
commit | 37286ee2923de060ae463ac6b178ffd0e6096b90 (patch) | |
tree | 7e37484ca1fee042cf386daff62ec29bf165db13 | |
parent | a2f0e4b1fd8b3d9675cc00a561094bd78a63d048 (diff) |
qt4/qt5: fix some kinds of OCG models
properly pass parent and child when building the tree
-rw-r--r-- | qt4/src/poppler-optcontent.cc | 2 | ||||
-rw-r--r-- | qt5/src/poppler-optcontent.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qt4/src/poppler-optcontent.cc b/qt4/src/poppler-optcontent.cc index 6a5ffe74..b9ceb7e4 100644 --- a/qt4/src/poppler-optcontent.cc +++ b/qt4/src/poppler-optcontent.cc @@ -172,7 +172,7 @@ namespace Poppler while ( i.hasNext() ) { i.next(); qDebug() << "iterator" << i.key() << ":" << i.value(); - addChild( i.value(), m_rootNode ); + addChild( m_rootNode, i.value() ); } } else { parseOrderArray( m_rootNode, optContent->getOrderArray() ); diff --git a/qt5/src/poppler-optcontent.cc b/qt5/src/poppler-optcontent.cc index 5af37c87..94df59e0 100644 --- a/qt5/src/poppler-optcontent.cc +++ b/qt5/src/poppler-optcontent.cc @@ -172,7 +172,7 @@ namespace Poppler while ( i.hasNext() ) { i.next(); qDebug() << "iterator" << i.key() << ":" << i.value(); - addChild( i.value(), m_rootNode ); + addChild( m_rootNode, i.value() ); } } else { parseOrderArray( m_rootNode, optContent->getOrderArray() ); |