mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
Fix column key sort with col block starting in col1 bug
Fix #8716, close #8717
This commit is contained in:
parent
209ccb97ec
commit
b072479bb8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user