Commit f93995d3 authored by Stephan Kulow's avatar Stephan Kulow
Browse files

don't overrun the array (CID 3278)

svn path=/trunk/KDE/kdebase/apps/; revision=642471
parent 5d89cc07
......@@ -89,7 +89,7 @@ void DolphinSortFilterProxyModel::sort(int column, Qt::SortOrder sortOrder)
DolphinView::Sorting DolphinSortFilterProxyModel::sortingForColumn(int column)
{
if ((column >= 0) && (column <= dolphinMapSize)) {
if ((column >= 0) && (column < dolphinMapSize)) {
return dirModelColumnToDolphinView[column];
}
return DolphinView::SortByName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment