Преглед на файлове

Code formatting

Source commit: f1ce7d819cfa10fb4d9f03d7ddfbcdfcde881be4
Martin Prikryl преди 5 години
родител
ревизия
2691ec4fb3
променени са 1 файла, в които са добавени 15 реда и са изтрити 13 реда
  1. 15 13
      source/packages/filemng/CustomDirView.pas

+ 15 - 13
source/packages/filemng/CustomDirView.pas

@@ -1042,21 +1042,23 @@ begin
 
   inherited;
 
-  if (Message.NMHdr.code = LVN_GETDISPINFO) and
-     FNotifyEnabled and Valid and (not Loading) then
-    with PLVDispInfo(Pointer(Message.NMHdr))^.Item do
-      try
-        InfoMask := PLVDispInfo(Pointer(Message.NMHdr))^.item.Mask;
+  if Message.NMHdr.code = LVN_GETDISPINFO then
+  begin
+    if FNotifyEnabled and Valid and (not Loading) then
+      with PLVDispInfo(Pointer(Message.NMHdr))^.Item do
+        try
+          InfoMask := PLVDispInfo(Pointer(Message.NMHdr))^.item.Mask;
 
-        if (InfoMask and LVIF_PARAM) <> 0 then Item := TListItem(lParam)
-          else
-        if iItem < Items.Count then Item := Items[iItem]
-          else Item := nil;
+          if (InfoMask and LVIF_PARAM) <> 0 then Item := TListItem(lParam)
+            else
+          if iItem < Items.Count then Item := Items[iItem]
+            else Item := nil;
 
-        if Assigned(Item) and Assigned(Item.Data) then
-          GetDisplayInfo(Item, PLVDispInfo(Pointer(Message.NMHdr))^.item);
-      except
-      end;
+          if Assigned(Item) and Assigned(Item.Data) then
+            GetDisplayInfo(Item, PLVDispInfo(Pointer(Message.NMHdr))^.item);
+        except
+        end;
+  end;
 
   if (Message.NMHdr.code = NM_CUSTOMDRAW) and
      Valid and (not Loading) then