Ignore:
Timestamp:
1999-10-20T16:54:21+13:00 (25 years ago)
Author:
sjboddie
Message:

problem with expanded contents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/browsetools.cpp

    r728 r730  
    2929/*
    3030   $Log$
     31   Revision 1.31  1999/10/20 03:54:20  sjboddie
     32   problem with expanded contents
     33
    3134   Revision 1.30  1999/10/19 21:36:59  sjboddie
    3235   fixed bug in DocumentContents
     
    289292  int haschildren = section.metadata["haschildren"].values[0].getint();
    290293  const text_t &doctype = section.metadata["doctype"].values[0];
    291   text_t classifytype = section.metadata["classifytype"].values[0];
     294  text_t classifytype = section.metadata["childtype"].values[0];
    292295  // HLists are displayed as VLists when contents are expanded,
    293296  // Paged documents are displayed as HLists
     
    383386
    384387  // HLists are displayed as VLists when contents are expanded,
    385   // Books are displayed as HLists
     388  // Paged documents are displayed as HLists
    386389  if (classifytype == "HList") classifytype = "VList";
    387   if (classifytype == "Book") classifytype = "HList";
     390  if (classifytype == "Paged") classifytype = "HList";
    388391
    389392  metadata.erase (metadata.begin(), metadata.end());
    390393         
    391394  // metadata elements needed by recurse_contents
    392   metadata.insert ("classifytype");
     395  metadata.insert ("childtype");
    393396  metadata.insert ("doctype");
    394397  metadata.insert ("haschildren");
Note: See TracChangeset for help on using the changeset viewer.