summaryrefslogtreecommitdiff
path: root/libyelp/yelp-docbook-document.c
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-02-13 17:04:20 -0500
committerShaun McCance <shaunm@gnome.org>2011-02-13 17:04:20 -0500
commit7413e93e638edb481cfe34d3c772a518c6211ae1 (patch)
treefec49469108a9fcef32fe90a5822eeb56c9b9caa /libyelp/yelp-docbook-document.c
parent6b49ff5c2a082d401afb21719fc85c8bbb8951a0 (diff)
downloadyelp-7413e93e638edb481cfe34d3c772a518c6211ae1.tar.gz
yelp-docbook-document: Only set root title for the root
Diffstat (limited to 'libyelp/yelp-docbook-document.c')
-rw-r--r--libyelp/yelp-docbook-document.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c
index 4142b69f..45a15f89 100644
--- a/libyelp/yelp-docbook-document.c
+++ b/libyelp/yelp-docbook-document.c
@@ -921,8 +921,9 @@ docbook_index_chunk (DocbookIndexData *index)
id = xmlGetProp (index->cur, BAD_CAST "id");
if (id != NULL) {
title = docbook_walk_get_title (index->docbook, index->cur);
- yelp_storage_set_root_title (yelp_storage_get_default (),
- index->doc_uri, title);
+ if (index->cur->parent->parent == NULL)
+ yelp_storage_set_root_title (yelp_storage_get_default (),
+ index->doc_uri, title);
index->str = g_string_new ("");
}