mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-01 09:53:58 +00:00
fixed leaderboard competitor column stuff (bug 2718)
This commit is contained in:
1 parent
da5a81908c
commit
8041fd0058
1 file changed
+20
-20
+20
-20
@@ -2815,27 +2815,27 @@ public class LeaderboardPanel extends SimplePanel implements TimeListener, PlayS
|
||||
public CompetitorDTO getCompetitor(LeaderboardRowDTO t) {
|
||||
return t.competitor;
|
||||
}
|
||||
});
|
||||
if (getLeaderboardTable().getColumnCount() >= columnIndexWhereToInsertTheNextColumn) {
|
||||
if (isShowCompetitorSailId()) {
|
||||
if (!(getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof SailIDColumn<?>)) {
|
||||
insertColumn(columnIndexWhereToInsertTheNextColumn, sailIdColumn);
|
||||
}
|
||||
columnIndexWhereToInsertTheNextColumn++;
|
||||
} else {
|
||||
if (getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof SailIDColumn<?>) {
|
||||
removeColumn(columnIndexWhereToInsertTheNextColumn);
|
||||
}
|
||||
});
|
||||
if (isShowCompetitorSailId()) {
|
||||
if (getLeaderboardTable().getColumnCount() <= columnIndexWhereToInsertTheNextColumn
|
||||
|| !(getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof SailIDColumn<?>)) {
|
||||
insertColumn(columnIndexWhereToInsertTheNextColumn, sailIdColumn);
|
||||
}
|
||||
if (isShowCompetitorFullName()) {
|
||||
if (!(getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof CompetitorColumn)) {
|
||||
insertColumn(columnIndexWhereToInsertTheNextColumn, createCompetitorColumn());
|
||||
}
|
||||
columnIndexWhereToInsertTheNextColumn++;
|
||||
} else {
|
||||
if (getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof CompetitorColumn) {
|
||||
removeColumn(columnIndexWhereToInsertTheNextColumn);
|
||||
}
|
||||
columnIndexWhereToInsertTheNextColumn++;
|
||||
} else {
|
||||
if (getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof SailIDColumn<?>) {
|
||||
removeColumn(columnIndexWhereToInsertTheNextColumn);
|
||||
}
|
||||
}
|
||||
if (isShowCompetitorFullName()) {
|
||||
if (getLeaderboardTable().getColumnCount() <= columnIndexWhereToInsertTheNextColumn
|
||||
|| !(getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof CompetitorColumn)) {
|
||||
insertColumn(columnIndexWhereToInsertTheNextColumn, createCompetitorColumn());
|
||||
}
|
||||
columnIndexWhereToInsertTheNextColumn++;
|
||||
} else {
|
||||
if (getLeaderboardTable().getColumn(columnIndexWhereToInsertTheNextColumn) instanceof CompetitorColumn) {
|
||||
removeColumn(columnIndexWhereToInsertTheNextColumn);
|
||||
}
|
||||
}
|
||||
return columnIndexWhereToInsertTheNextColumn;
|
||||
|
||||
Reference in new issue
Block a user