Fix sorting by column key using incorrect key values

Fix #8674, close #8675
pull/8690/head
Scott Sumner 2020-08-06 15:18:14 -04:00 committed by Don HO
parent ca3d514722
commit 5271b88fc3
1 changed files with 10 additions and 2 deletions

View File

@ -55,8 +55,16 @@ protected:
{
return TEXT("");
}
return input.substr(_fromColumn, 1 + _toColumn - _fromColumn);
else if (_fromColumn == _toColumn)
{
// get characters from the indicated column to the end of the line
return input.substr(_fromColumn);
}
else
{
// get characters between the indicated columns, inclusive
return input.substr(_fromColumn, _toColumn - _fromColumn);
}
}
else
{