reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 4ce4a60bcaf60cec9386504d16b65a1ab246e36f
parent 329abdc368eccf29c1691f81090ac975c671f6e9
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Thu,  5 Jan 2017 04:39:15 -0500

listview: fix crash when sort is negative in configuration

negative sort = no sort

Diffstat:
Msrc/listview.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/listview.cpp b/src/listview.cpp @@ -514,7 +514,7 @@ void ListView::restoreState(Serializer::Data &data) switch(col) { case -1: // sort - if(left < columnCount()) + if(left >= 0 && left < columnCount()) sortByColumn(left, right == 0 ? AscendingOrder : DescendingOrder, true); break; default: // column