Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another std::min fix
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent 1621594 commit ec8943f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layout/qgslayoutattributeselectiondialog.cpp
Expand Up @@ -288,7 +288,7 @@ bool QgsLayoutAttributeTableColumnModelBase::removeRows( int row, int count, con
{
Q_UNUSED( parent )

int maxRow = std::min( row + count - 1, columns().length() - 1 );
int maxRow = std::min< int >( row + count - 1, columns().length() - 1 );
beginRemoveRows( QModelIndex(), row, maxRow );
//move backwards through rows, removing each corresponding QgsComposerTableColumn
for ( int i = maxRow; i >= row; --i )
Expand Down

0 comments on commit ec8943f

Please sign in to comment.