summaryrefslogtreecommitdiff
path: root/libyelp/yelp-document.c
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-04-27 09:56:12 -0500
committerShaun McCance <shaunm@gnome.org>2010-04-27 09:56:12 -0500
commit9562d018fe61aa5805fc25d1a318fb228bc004ad (patch)
tree5fcc522fd87f9fe7cafd1090d935ef774d58df8c /libyelp/yelp-document.c
parent04c47abd3669dd5522091e9cfed4466183c4c5ef (diff)
downloadyelp-9562d018fe61aa5805fc25d1a318fb228bc004ad.tar.gz
[libyelp] Load the top page without a page ID for info documents
Diffstat (limited to 'libyelp/yelp-document.c')
-rw-r--r--libyelp/yelp-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index af93cc64..aec4e7f7 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -339,7 +339,7 @@ yelp_document_set_page_id (YelpDocument *document,
hash_replace (document->priv->page_ids, id, g_strdup (page_id));
- if (id != NULL && !g_str_equal (id, page_id)) {
+ if (id == NULL || !g_str_equal (id, page_id)) {
GSList *reqs, *cur;
reqs = hash_lookup (document->priv->reqs_by_page_id, id);
for (cur = reqs; cur != NULL; cur = cur->next) {