Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/uDocTree.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/uDocTree.pas
r459 r460 247 247 248 248 procedure MakeBold(ANode: TORTreeNode); 249 var 250 LookingForAddenda: boolean; 249 251 begin 252 LookingForAddenda := (Pos('ADDENDUM', UpperCase(CurrentContext.Keyword)) > 0); 250 253 with ANode do 251 254 begin … … 253 256 if Parent <> nil then 254 257 begin 255 Parent.Expand(False); 258 if (ImageIndex <> IMG_ADDENDUM) or ((ImageIndex = IMG_ADDENDUM) and LookingForAddenda) then 259 Parent.Expand(False); 256 260 if Parent.Parent <> nil then 257 261 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); 259 264 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); 261 267 end; 262 268 end;
Note:
See TracChangeset
for help on using the changeset viewer.