Skip to content
Permalink
Browse files
Another std::min fix
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent 1621594 commit ec8943fe4b0fa321cad9142db14bd1e89b731df2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/layout/qgslayoutattributeselectiondialog.cpp
@@ -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 )

0 comments on commit ec8943f

Please sign in to comment.