Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

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

    r459 r460  
    247247
    248248  procedure MakeBold(ANode: TORTreeNode);
     249  var
     250    LookingForAddenda: boolean;
    249251  begin
     252    LookingForAddenda := (Pos('ADDENDUM', UpperCase(CurrentContext.Keyword)) > 0);
    250253    with ANode do
    251254      begin
     
    253256        if Parent <> nil then
    254257          begin
    255             Parent.Expand(False);
     258            if (ImageIndex <> IMG_ADDENDUM) or ((ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
     259              Parent.Expand(False);
    256260            if Parent.Parent <> nil then
    257261              begin
    258                 Parent.Parent.Expand(False);
     262                if (Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
     263                  Parent.Parent.Expand(False);
    259264                if Parent.Parent.Parent <> nil then
    260                   Parent.Parent.Parent.Expand(False);
     265                  if (Parent.Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then
     266                    Parent.Parent.Parent.Expand(False);
    261267              end;
    262268          end;
Note: See TracChangeset for help on using the changeset viewer.