[vcs-log] Ignore move colun event if column wasn't changed

Simple mouse click is interpreted as dragging with 0 distance
and spawns column moved event having old index == new index,
which is handled redundantly

GitOrigin-RevId: b852ba38c5d97c0d4d8862f695849d8fc4216368
This commit is contained in:
Ilia.Shulgin
2024-08-08 10:33:17 +02:00
committed by intellij-monorepo-bot
parent 42637822b8
commit 181d4b7e2d

View File

@@ -1017,6 +1017,11 @@ public class VcsLogGraphTable extends TableWithProgress
@Override
public void moveColumn(int columnIndex, int newIndex) {
if (columnIndex == newIndex) {
super.moveColumn(columnIndex, newIndex);
return;
}
VcsLogColumn<?> column = getVcsLogColumn(columnIndex);
if (column == null ||
column == Root.INSTANCE || getVcsLogColumn(newIndex) == Root.INSTANCE ||