mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Add additional guards to UnionSelection method
This commit is contained in:
@@ -769,9 +769,11 @@ namespace Terminal.Gui {
|
||||
/// <param name="row"></param>
|
||||
private void UnionSelection (int col, int row)
|
||||
{
|
||||
if(!MultiSelect) {
|
||||
if (!MultiSelect || TableIsNullOrInvisible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
EnsureValidSelection ();
|
||||
|
||||
var oldColumn = SelectedColumn;
|
||||
var oldRow = SelectedRow;
|
||||
|
||||
Reference in New Issue
Block a user