diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-04-27 09:56:12 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-04-27 09:56:12 -0500 |
commit | 9562d018fe61aa5805fc25d1a318fb228bc004ad (patch) | |
tree | 5fcc522fd87f9fe7cafd1090d935ef774d58df8c /libyelp/yelp-document.c | |
parent | 04c47abd3669dd5522091e9cfed4466183c4c5ef (diff) | |
download | yelp-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.c | 2 |
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) { |