Changeset 830 for cprs/trunk/CPRS-Chart/uDocTree.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/uDocTree.pas
r456 r830 84 84 SrcList := TStringList.Create; 85 85 try 86 SrcList.Assign(Source);86 FastAssign(Source, SrcList); 87 87 with SrcList do 88 88 begin … … 250 250 LookingForAddenda: boolean; 251 251 begin 252 if not assigned(Node) then exit; 252 253 LookingForAddenda := (Pos('ADDENDUM', UpperCase(CurrentContext.Keyword)) > 0); 253 254 with ANode do 254 255 begin 255 256 Bold := True; 256 if Parent <> nilthen257 if assigned(Parent) then 257 258 begin 258 259 if (ImageIndex <> IMG_ADDENDUM) or ((ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then 259 260 Parent.Expand(False); 260 if Parent.Parent <> nilthen261 if assigned(Parent.Parent) then 261 262 begin 262 263 if (Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then 263 264 Parent.Parent.Expand(False); 264 if Parent.Parent.Parent <> nilthen265 if assigned(Parent.Parent.Parent) then 265 266 if (Parent.Parent.ImageIndex <> IMG_ADDENDUM) or ((Parent.Parent.ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then 266 267 Parent.Parent.Parent.Expand(False);
Note:
See TracChangeset
for help on using the changeset viewer.