Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Mar 26, 2020
1 parent 72404a9 commit f525d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/processing/qgsprocessingmatrixmodelerwidget.cpp
Expand Up @@ -51,7 +51,7 @@ void QgsProcessingMatrixModelerWidget::addColumn()
void QgsProcessingMatrixModelerWidget::removeColumns()
{
QModelIndexList selected = mTableView->selectionModel()->selectedColumns();
std::sort( selected.begin(), selected(), []( const QModelIndex & a, const QModelIndex & b ) { return b < a; } );
std::sort( selected.begin(), selected.end(), []( const QModelIndex & a, const QModelIndex & b ) { return b < a; } );

mTableView->setUpdatesEnabled( false );
for ( QModelIndex i : qgis::as_const( selected ) )
Expand All @@ -72,7 +72,7 @@ void QgsProcessingMatrixModelerWidget::addRow()
void QgsProcessingMatrixModelerWidget::removeRows()
{
QModelIndexList selected = mTableView->selectionModel()->selectedRows();
std::sort( selected.begin(), selected(), []( const QModelIndex & a, const QModelIndex & b ) { return b < a; } );
std::sort( selected.begin(), selected.end(), []( const QModelIndex & a, const QModelIndex & b ) { return b < a; } );

mTableView->setUpdatesEnabled( false );
for ( QModelIndex i : qgis::as_const( selected ) )
Expand Down

0 comments on commit f525d01

Please sign in to comment.