Skip to content

Commit

Permalink
thanks clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Mar 11, 2024
1 parent e9e56d3 commit 207eaec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void QgsFilteredTableWidget::filterStringChanged( const QString &filterString )
}
const int groupsCount = mDisplayGroupName ? groups.count() : groups.count() - 1;

const int rCount = std::max( 1, ( int ) std::ceil( ( float ) mCache.count() + groupsCount / ( float ) mColumnCount ) );
const int rCount = std::max( 1, ( int ) std::ceil( ( float )( mCache.count() + groupsCount ) / ( float ) mColumnCount ) );
mTableWidget->setRowCount( rCount );

int row = 0;
Expand Down

0 comments on commit 207eaec

Please sign in to comment.