diff options
author | Martin Smith <martin.smith@qt.io> | 2019-01-15 14:53:51 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2019-01-15 14:09:28 +0000 |
commit | a83e01ef571fa26e2b76dcfe33027da6f95cfb76 (patch) | |
tree | d5ae91608e5182f14ff77ba15f463f495016229d | |
parent | ca97f0694d9483a7a0013ecc356f65c36581a4d0 (diff) | |
download | qttools-a83e01ef571fa26e2b76dcfe33027da6f95cfb76.tar.gz |
qdoc: Change test from PageNode to TextPageNode
The resolveTargets() function in class Tree was adding a node
to the pageNodesByTitle_ map when the node was a Page node,
but it should only do that for nodes that are TexPage nodes.
An Aggregate is a PageNode because it generates a page, but it
is not a TextPageNode.
Change-Id: Icd3c8c40016b2f9c8a7696b33192391a4ffe6e09
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/qdoc/tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/tree.cpp b/src/qdoc/tree.cpp index 4a7b15b09..ad07654e4 100644 --- a/src/qdoc/tree.cpp +++ b/src/qdoc/tree.cpp @@ -965,7 +965,7 @@ void Tree::insertTarget(const QString& name, void Tree::resolveTargets(Aggregate* root) { foreach (Node* child, root->childNodes()) { - if (child->nodeType() == Node::Page) { + if (child->isTextPageNode()) { PageNode* node = static_cast<PageNode*>(child); QString key = node->title(); if (!key.isEmpty()) { |