fixed Count for closed bookmarks, doesn't contribute to parent's Count.

Wed, 05 Mar 2003 02:26:43 +0000

author
eric
date
Wed, 05 Mar 2003 02:26:43 +0000
changeset 76
2129cfb36fcc
parent 75
29d7cbc7c251
child 77
544fff830581

fixed Count for closed bookmarks, doesn't contribute to parent's Count.

pdf_bookmark.c file | annotate | diff | revisions
     1.1 --- a/pdf_bookmark.c	Wed Mar 05 02:09:49 2003 +0000
     1.2 +++ b/pdf_bookmark.c	Wed Mar 05 02:26:43 2003 +0000
     1.3 @@ -4,7 +4,7 @@
     1.4   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.5   *
     1.6   * PDF routines
     1.7 - * $Id: pdf_bookmark.c,v 1.1 2003/03/04 17:58:36 eric Exp $
     1.8 + * $Id: pdf_bookmark.c,v 1.2 2003/03/04 18:26:43 eric Exp $
     1.9   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -53,6 +53,8 @@
    1.13        pdf_set_integer (count_obj,
    1.14  		       pdf_get_integer (count_obj) +
    1.15  		       ((entry->open) ? 1 : -1));
    1.16 +      if (! entry->open)
    1.17 +	break;
    1.18        entry = entry->parent;
    1.19      }
    1.20  }