Fix column key sort with col block starting in col1 bug

Fix #8716, close #8717
pull/8740/head
Scott Sumner 2020-08-15 19:45:43 -04:00 committed by Don HO
parent 209ccb97ec
commit b072479bb8
1 changed files with 2 additions and 2 deletions

View File

@ -50,9 +50,9 @@ protected:
{
if (isSortingSpecificColumns())
{
// prevent an std::out_of_range exception
if (input.length() < _fromColumn)
{
// prevent an std::out_of_range exception
return TEXT("");
}
else if (_fromColumn == _toColumn)
@ -74,7 +74,7 @@ protected:
bool isSortingSpecificColumns()
{
return _fromColumn != 0 && _toColumn != 0;
return _toColumn != 0;
}
public: