File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -8383,6 +8383,7 @@ procedure TVirtualTreeColumns.UpdatePositions(Force: Boolean = False);
83838383function TVirtualTreeColumns.Add: TVirtualTreeColumn;
83848384
83858385begin
8386+ Assert(GetCurrentThreadId = MainThreadId, 'UI controls may only be chnaged in UI thread.');
83868387 Result := TVirtualTreeColumn(inherited Add);
83878388end;
83888389
@@ -29811,6 +29812,7 @@ function TBaseVirtualTree.InvalidateNode(Node: PVirtualNode): TRect;
2981129812
2981229813begin
2981329814 Assert(Assigned(Node), 'Node must not be nil.');
29815+ Assert(GetCurrentThreadId = MainThreadId, 'UI controls may only be chnaged in UI thread.');
2981429816 // Reset height measured flag too to cause a re-issue of the OnMeasureItem event.
2981529817 Exclude(Node.States, vsHeightMeasured);
2981629818 if (FUpdateCount = 0) and HandleAllocated then
You can’t perform that action at this time.
0 commit comments