Procházet zdrojové kódy

Code formatting

(cherry picked from commit 2691ec4fb3bdbe9c4f93052ac971641b46a80bff)

Source commit: 44856e2896955fffac0b9989174b9d67a5ec7310
Martin Prikryl před 5 roky
rodič
revize
ca4d71a725
1 změnil soubory, kde provedl 15 přidání a 13 odebrání
  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