Răsfoiți Sursa

Undoing change from 5d86eacb that only have effect in Debug build (by mistake), what is dangerous as it might hive some problems during debugging

Source commit: 761469dd02026c6a8cc4d14a474cc103df2b192f
Martin Prikryl 11 luni în urmă
părinte
comite
936095a230
1 a modificat fișierele cu 1 adăugiri și 12 ștergeri
  1. 1 12
      source/windows/VCLCommon.cpp

+ 1 - 12
source/windows/VCLCommon.cpp

@@ -920,18 +920,7 @@ void __fastcall VerifyControl(TControl * Control)
   // check for the presence of items as while the listview does not have
   // a handle allocated, item count querying does not work
   // (see also a check below)
-  if (ControlHasRecreationPersistenceData(Control))
-  {
-    // Though if RTL bidi mode is set, the controls are recreated always,
-    // as we cannot really prevent it. So we force creation here.
-    DebugAssert(Application->BiDiMode != bdLeftToRight);
-    TWinControl * WinControl = dynamic_cast<TWinControl *>(Control);
-    // It must be TWinControl if ControlHasRecreationPersistenceData returned true
-    if (DebugAlwaysTrue(WinControl != NULL))
-    {
-      WinControl->HandleNeeded();
-    }
-  }
+  DebugAssert(!ControlHasRecreationPersistenceData(Control));
 
   TCustomListView * ListView = dynamic_cast<TCustomListView *>(Control);
   if (ListView != NULL)