We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbab4cb commit b739799Copy full SHA for b739799
source/table_editor.pas
@@ -1217,6 +1217,8 @@ procedure TfrmTableEditor.listColumnsDragDrop(Sender: TBaseVirtualTree;
1217
NewIndex := FColumns.IndexOf(ToCol^);
1218
if Mode = dmBelow then
1219
Inc(NewIndex);
1220
+ // Fix crash when moving to very bottom
1221
+ NewIndex := Min(NewIndex, FColumns.Count-1);
1222
FColumns.Move(FColumns.IndexOf(FocusedCol^), NewIndex);
1223
FocusedCol.Status := esModified;
1224
Modification(Sender);
0 commit comments