diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-02-13 17:04:20 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-02-13 17:04:20 -0500 |
commit | 7413e93e638edb481cfe34d3c772a518c6211ae1 (patch) | |
tree | fec49469108a9fcef32fe90a5822eeb56c9b9caa /libyelp/yelp-docbook-document.c | |
parent | 6b49ff5c2a082d401afb21719fc85c8bbb8951a0 (diff) | |
download | yelp-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.c | 5 |
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 (""); } |