Skip to content

Commit

Permalink
TableOutputComponent: Fix selectStartIndex assigned to itself
Browse files Browse the repository at this point in the history
Consistently apply line 630's comment by properly assigning
selectStartIndex to selectEndIndex in line 635's specific case.

Basically, make the latter the reciprocal of line 632's case, as
originally intended.

Contributes to fixing #859.

Signed-off-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
marco-miller committed Nov 1, 2022
1 parent a0f2607 commit 1c2f1d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export class TableOutputComponent extends AbstractOutputComponent<TableOutputPro
this.selectEndIndex = this.selectStartIndex;
}
if (this.selectEndIndex !== -1 && this.selectStartIndex === -1) {
this.selectStartIndex = this.selectStartIndex;
this.selectStartIndex = this.selectEndIndex;
}

let currRowIndex = 0;
Expand Down

0 comments on commit 1c2f1d0

Please sign in to comment.