Ignore:
Timestamp:
Feb 12, 2019, 9:03:30 PM (6 years ago)
Author:
RBRi
Message:

% ignore child nodes before the first root node because the org viewer does the same

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/MainForm.pas

    r332 r411  
    58545854        begin
    58555855          // subnodes
    5856           assert( Node <> nil, 'No level 1 topic for subnodes!' );
    5857           AddChildNodes( HelpFile,
    5858                          Node,
    5859                          Topic.ContentsLevel,
    5860                          TopicIndex );
    5861           Node := nil;
     5856          // ignore child nodes before the first root node
     5857          // the org viewer does the same
     5858          if Node = nil then
     5859          begin
     5860            inc( TopicIndex );
     5861          end
     5862          else
     5863          begin
     5864            AddChildNodes( HelpFile, Node, Topic.ContentsLevel, TopicIndex );
     5865            Node := nil;
     5866          end;
    58625867        end;
    58635868      end
Note: See TracChangeset for help on using the changeset viewer.