Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/uDocTree.pas

    r456 r830  
    8484  SrcList := TStringList.Create;
    8585  try
    86     SrcList.Assign(Source);
     86    FastAssign(Source, SrcList);
    8787    with SrcList do
    8888      begin
     
    250250    LookingForAddenda: boolean;
    251251  begin
     252    if not assigned(Node) then exit;
    252253    LookingForAddenda := (Pos('ADDENDUM', UpperCase(CurrentContext.Keyword)) > 0);
    253254    with ANode do
    254255      begin
    255256        Bold := True;
    256         if Parent <> nil then
     257        if assigned(Parent) then
    257258          begin
    258259            if (ImageIndex <> IMG_ADDENDUM) or ((ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
    259260              Parent.Expand(False);
    260             if Parent.Parent <> nil then
     261            if assigned(Parent.Parent) then
    261262              begin
    262263                if (Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
    263264                  Parent.Parent.Expand(False);
    264                 if Parent.Parent.Parent <> nil then
     265                if assigned(Parent.Parent.Parent) then
    265266                  if (Parent.Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
    266267                    Parent.Parent.Parent.Expand(False);
Note: See TracChangeset for help on using the changeset viewer.